Debug Queues and Solve Arrays | LinkedIn Interview Question