Im gettign wrong answer for one test case

Hello @Anchal,

The order of your output is wrong for the testcases like:
5
5 4 1 2 3
Expected Output:
5 1 3 4 2
Your Output:
5 1 3 2 4

It is correct for odd numbers but not for even numbers.
Correct it and it will paas all the test cases.

Hope, thios will help.
Give a like,if you are satisfied.

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.