Not able to clear one test cases just?

Okay i got it, wait let me debug it.

See for this test case
10
1 2 3 5 7 2 4 6 3 8

Expected output is:
1 3 5 7 3 2 2 4 6 8

Yours is giving is:
1 2 3 5 7 2 4 6 3 8

Check your logic again. Also this can be implemented using STL by creating linked list for odd members then for even members and then you merge them.
Try to approach like this.

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.