Balances SubArray

One test case os not working. Please tell me where am I going wrong.
Here is the link to my code-

The link which you have shared does not contain the code for question “Balances Subarray”
Please check and resend the link.

Sorry for that.

Replace line 19 with int len = 0;
Answer must be 0 when no such subarray is found

Okay, Thank you so much.