Arrays-Sum Of Two Arrays

I can’t figure out how the sample output is evaluated in this problem.
i.e
problem:-
Take as input N, the size of array. Take N more inputs and store that in an array. Take as input M, the size of second array and take M more inputs and store that in second array. Write a function that returns the sum of two arrays. Print the value returned.
sample input:-
4
1 0 2 9
5
3 4 5 6 7

sample output:-
3, 5, 5, 9, 6, END

Hi @tusharamay
Basically the ques says that you have to sum both the array in such a way that you take sum from last element of both the array. That is you have to do arr[n-1] + brr[m-1] . Look at sample case in this way. You will see that sample case is correct and try to solve the ques in that way.

sample case
1 0 2 9
3 4 5 6 7

output will be generated as
carry - 0 0 0 0 1 0
output - 3 5 5 9 6

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.