Hoodies at coding blocks , can you send the code for this please?

I am not able to implement queue of pairs it is giving wrong output everytime :slight_smile:

Hint to Approach the problem:
step:01: make four queues for four courses and make one another queue that store the ordering of these four queues according to occurence.
step:02: Now take the inputs and make the cases based on course and rollno.

Now first try to solve it on your own…
I provide you the Reference code also, you can dry run it…

Reference Code:

I hope this help if you have further doubt feel free to ask at any time…