Failed test case 0 and passed all the others


please correct my code !!
its all jumbled

for the test case:
5
-5 3 4 -2 1
ur answer will be 6
required 7