If the contents are:
1 - Queue q = new Queue();
2 - q.enqueue(3);
3 - q.enqueue(10);
4 - if(q.dequeue()<5)
5 - q.dequeue();
6 - q.enqueue(1);
7 - q.enqueue(6);
I'm a little stumped by the line 4/5. I know initially it is [3, 10] but does it remove both elements or just the [3]?
As a result, I'm unsure if the correct answer is [10, 1, 6] OR [1, 6]