Not passing 1st test case

hello @anshulgurawalia
relative order among all odds and all even must reamin same.
ur solution is not handling this.

for ex->
6
1 2 3 4 5 6
expected output ->
1 3 5 2 4 6
ur output->
1 3 5 4 2 6

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.