Even after odd problem

https://ide.geeksforgeeks.org/K9VXFYF0Ah----what’s the error in code it is not passsing 2 test cases out of 4, please make corrections and point them out

hi @AbhishekAhlawat1102
your code is correct but your code is changing the arrangement of numbers
like for this testcase
4
1 3 5 7
your output should be
1 3 5 7

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.