Problem in coading

why not passes one test case can u plz check my code

Hello Tejasv,
Your code if fine, just correct the array size!(n<100000)
rest is okay!
there is some problem with last test case!


can u plzz check my code it doesnt passes 3rd test case

when you print -1, just return 0 afterwards! otherwise program continues.