Even-After-Odd(Constraints Not clear)

Output list should be sorted or not?
What shall be the output for the following input?
3 4 5 7 9 2 4 7 1 2

@isa67719 hey mohd Isa
this is the output for your input
3 5 7 9 7 1 4 2 4 2 I have ran this input in my code