Can you please specify the credentials of test case 0 because I am not able to understand that why is the code failing this particular test case?
Test Case 0 failing
hey @mrpareek you should try
4
8 2 3 6
for this output will be
-1 3 6 8
Happy to help
Keep coding
The output for
5
2 3 6 5 4
would be
3 6 -1 - 1 -1
or
3 6 -1 6 6
Please help me by clarifying this!
The second option is correct answer @mrpareek ,moreover i lost your doubt link, therefore You won’t be able to give your feedback on my service so I would request you to give a heart on my comments on this post if you find my service helpful 
Happy to help , keep coding 
But Sir this type of test case has not been included because I just tested with the first element in my program and all the test cases got passed!
Even though my code was giving first option as the answer!
Yes @mrpareek maybe test cases are too weak for this problem. But you got the concept right , didn’t you? 
Yeah I got it all right just because of you and I have corrected the code too.So Thank You!!!
Sure…hope to stay in touch!!