Solve the online assessment questions that were described as LeetCode hard/medium and involved complex data structures such as queues.