Sum of Two Array

my code: https://ide.codingblocks.com/s/391753
i have passed two test case only, what is wrong in my approach?

Hello @samardeep please wait i am checking your code:

Hello @samardeep i have corrected your code and commented the error if you have any doubt you can ask here:


Happy Learning!!

thank you , I found my mistake

hello @samardeep if your your doubt is cleared you can mark this as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.