Sir, I passed in all test cases except one test case. Please help me to correct my code

hello @chandreshmaurya

Sir, isme maine ans_left ko initialise nhi kiya tha. but, ans_left ko hamesha left se update kr rha tha. Ye kaise galat ho gya ?

try
1 0
0
test case without intailising ans