Arrays-Sum of two Arrays

I am unable to understand the test cases and the question please elaborate the output

Hello @Divya_321,

Your confusion is valid. You have to relate it with the way you perform addition in mathematics.

  • The addition is taking place from the last index of both indexes.
  • Consider all elements of each array as one number.

The digits at 1s place are added first.
9+7=6 , carry=1
similarly for other places:
2+6+carry=8+1=9 , carry=0
0+5+carry=5 , carry =0
1+4+carry=5 , carry=0
3+carry=3

Hope, it would help.
Give a like if you are satisfied.