Even-After-Odd . Question is unclear

The question says that we have to put all even numbers after the odd. It could be one of the 2 solutions. Please help me as there is only 1 test case.

  1. So do we have to set them in sorted way.
  2. Or just find an even element. Delete it . And append it at the end thus maintaing the orignal order of occurence

hey @ayushjain.aj300, no need to add in sorted order.
example-9->8->7->6->5
output should be 9->7->5->8->6

I am getting a run time error in the last test case please help - https://ideone.com/mwfGY1

hey @ayushjain.aj300, you are getting run error for input like this
5
1 3 5 7 9
Dry run this code on paper once for this testcase.