Arrays-Sum Of Two Arrays

In this prob sample input and output are wrong or wht?/?
sum of
1 0 2 9
with
3 4 5 6 7
wil be
4 4 7 15 END

In this question, you are given two arrays, arr1[ ] and arr2[ ],
4
1 0 2 9
5
3 4 5 6 7
So you will maintain sum and carry as two variables,
Then you will add the two arrays normally , such that ,you will add normally from right to left.
9+7 =`16, thus carry=1, sum=6
2+6+1 = 9 , sum=9, carry=0
5+0=5 , sum=5, carry=0
4+1=5 , sum=5. carry=0
3
Thus output is : 3, 5, 5, 9, 6

Is this code for sum of two arrays ? Plz confirm so that I could check