Test case not passing , though the code is working properly

problem: https://online.codingblocks.com/app/player/69347/content/128032/4936/code-challenge

solution:

@Shrey0709 your code is not reversing the stacks its just printing as it is
3
3 2 1
ans 3 2 1
your ans 1 2 3
please check it

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.