For what test case this code is wrong?

ques link-https://codeforces.com/contest/1304/problem/C

sol–https://codeforces.com/contest/1304/submission/71576477

2 10
8 -8 7
16 -10 -5