Getiing only test case 0 and 4 correct

Que- sum of two arrays.

here is the code. https://ide.codingblocks.com/s/244347

Consider input:
3
5 5 5
3
5 5 5

your code’s output:
1, 1, 0, END

but the expected output is:
1, 1, 1, 0, END

Make sure your code handles different cases of carry.