Unlock stl test case failing 3

https://ide.codingblocks.com/s/68207
please help

Wrong test case
5 1
5 1 3 4 2
your output
5 1 3 2 4
Correct output
5 4 3 1 2

Refer my code
https://ide.codingblocks.com/s/68394

1 Like