One of my test case fails for even-after-odd

Hello @Anchal,

Your Code is failing for the test cases like:
Example 1:
7
1 2 4 3 8 5 6
Your Output:
1 3 5 2 8 4 6
Expected Output:
1 3 5 2 4 8 6

Example 2:
10
1 2 3 4 5 6 7 8 9 10
Your Output:
1 3 5 7 9 6 4 8 2 10
Expected Output:
1 3 5 7 9 2 4 6 8 10

Mistake:
The order in the even sequence should be the same as present in the original input sequence.

Try to correct it.
Let me know, if you face any issue.
Hope, this would help.
Give a like if you are satisfied.