Sum of two arrays problem

I am unable to understand the question. I think question is different and sample input and sample output is different. I have written this code, please check my code 159160.

Hi @Kajal
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.