Difficulty in understanding output

i m not getting exactly what i have to do

Basically in this question, you are given two arrays, and you have to calculate their sum, by adding the ith element of 1st array and ith element of 2nd array, You have to maintain two variables, sum and carry, and calculate the value of sum and carry while traversing the arrays from right to left.

1 Like