Implementation of Queue using 2 stacks

My code is showing wrong answer for some of the case .can you please help me to identify the error where i am getting wrong.


Input case 1:
10
1 76
1 33
2
1 23
1 97
1 21
3
3
1 74
3
output should be 33 33 33 but i am getting wrong

hi @S18LP0113 can you share the link of the question or the description as well?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.