Sum of two array

My code is not compatible for all test case may you please fix this code
https://ide.codingblocks.com/s/342823

okay I will look into it and get back to you