EXACTLY WHAT WE HAVE TO DO IN THIS QUESTION? I CANT UNDERSTAND THE INPUT OUTPUTS EXAMPLE WHICH IS SHOWN IN THIS QUESTION
Sum of two arrays
You have to calculate sum of arrays, index by index.
basically, you have to traverse the arrays, from right to left and u have to maintain two variables as sum and carry,
thus u have 9+7=16, sum=6, carry=1
2+6+1=9, sum=9, carry=0;
0+5 =5, sum=5, carry=0;
4+1=5, sum=5, carry=0;
3, since 1st array is fully traversed,
thus output is : 3, 5, 5, 9, 6