Not passing test cases

hello @Sunkumsav dry run your code for the test case :
4
-4 5 0 17
your code is printig false for it .
and use long long int as array elements are of order 1e9 .
i hope you will find your mistake in dry run
if you feel your doubt is cleared please mark the doubt as resolved .
Happy Learning !!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.