Unable to catch whats the problem

out of five test cases three test cases works out but two did not

Input:
3
4
-1 -1 -1 3
4
100000 100000 100000 100000
4
10 9 -3 -6

Correct output:
Yes
No
Yes
Your output:
No
No
No

debug for this