I write the code then I submit every time one test case is not running then I saw that test case the I noticed that it’s answer is wrong
Input
4
8 2 3 6
OUTPUT
-1 3 6 8 according to your coding blocks by my output is
-1 3 6 -1 (MY O/P) ( this is right according to me)