Array sum of two array doubt

sir two of the testcases does not pass.
what does this “the first digit represents carry over , if any (0 here ) .” means .i am not getting it.its given in explanation of output

yes you have to consider all testcases

for two arrays
1 2 3
4 5 6
output will be
5 7 9

for input
9 9 9
9 9 9
output will be
1 9 9 8

sir still not able to do.where i am making mistake?

i have done some changes in your code
check them

if you have any doubt feel free to ask

i have stored the sum in ans array from starting and at end print the ans array in reverse order