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
4
8 2 3 6
-1 3 6 8 according to your coding blocks
by my output is
-1 3 6 -1 ( this is right according to me)