Mistake in the code


here is my code on the problem sum of 2 arrays
it gives wrong answer for only one of the 3 test case. please see to it.

@varindavg hey varinda your code is fails to handle this case
1
1
1
1
your output is 0,2,END
but output should be 2,END

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.