For some test cases the output is correct but for some test cases it is showing wrong answer.
link-https://ide.codingblocks.com/s/74951
Wrong answer in some test cases in Arrays-Sum of two Arrays problem
Rishabh, in line no 12 of your code, you are taking max of the size of 2 arrays,
but your code will fail in such eg : 4
1 0 2 9
4
9 0 2 9
the ans should be 1, 0, 0, 5, 8 , END
but your code is giving as 0, 0, 5, 8, END
Try some different approach for size of result.