Sum of two arrays

Pls tell what modification is required in the code to answer
the test case(I am getting one test case wrong)

check for this test case
4
9 9 9 9
3
9 9 9

Yes…it will give wrong output for this case.But I am not able to modify the above code to adjust this case …
I had set sum of the digits of the 2 arrays as greater than 9 and correspondingly rem=max(m,n)+1 but the code is not responding

hi mudit
can u explain ur logic

I am done with the code…it is working.
The logic is that I convert the arrays to integers,add them,and convert the result back to an array and print it.
The size of final array is equal to the size of the sum of the integers

its good
but actually thE question is adding two array therefore for good hand on array u must have done using array only not conversion into n umber

ok…I will keep it in mind