Arrays-Sum Of Two Arrays

test case #1 and #3 wrong answer
test case #2 and #4 pass

Where I am going wrong in the above code, can you please help?
I have checked extreme cases also still not getting it.

In case you need question-
https://online.codingblocks.com/app/player/30869/content/8107/4820