Sum of two Arrays

https://ide.codingblocks.com/s/282072.
I am not able to find bug.

Hey, can you please provide the link of question as well?
On my end it is showing maximum length bitonic subarray but your code doesn’t appear to be of maximum length biotonic subarray.