1 test case failing

sol: https://ide.codingblocks.com/s/392027

prob: https://hack.codingblocks.com/app/contests/2022/474/problem

Hey @raghav007 check for this test case
7
5 8 2 0 1 2 3
Your output is: 1 0 2 3 2 5 8
Try to debug if you fail let me know I’ll help.

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.