Why my code is not passing 2 test cases
dry run your code for input like
11
0 1 2 3 4 5 6 7 8 9 10
the Modified List should be : 0 2 4 6 8 10 1 3 5 7 9
dry run your code for input like
11
0 1 2 3 4 5 6 7 8 9 10
the Modified List should be : 0 2 4 6 8 10 1 3 5 7 9