Problem sum two array

test case not passed

@naveengupta
Please share your code using ide.codingblocks.com

@naveengupta
You have not considered the possibility where there could be a carryover and the size of the new array could be larger than either of the two input arrays.
Try this testcase :
Input :
4
1 0 2 9
4
9 1 1 1

Expected Output :
1, 0, 1, 4, 0, END

Your Output :
0, 1, 4, 0, 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.