Wrong solution?


#1

Method 3 of the solution gives the output 2 1 3 for i/p 7 2 1 3 -1 -1 -1 -1.It should be 1 2 3 right?