Sum of two arrays3456

https://ide.codingblocks.com/s/51164
one test case wrong.

3
1 2 3
3
-1 2 0
try for this case
excpected answer is 0,4,3, END
but your answer is 4,3,END

Also length of array is 1000 and you are multiplying p by 10 times each time that means for 1000 length p=10^1000 which can’t be stored , so try other approach.