1. Given an array having both positive and negative integers.
2. The task is to complete the function maxSum_0() which returns the length of maximum subarray with 0 sum.
3. The function takes two arguments an array A and n where n is the size of the array A.
Input Format
First line contains N(size). Second line contains N space separated integers.
Output Format
Return the integer(maxLength)
Constraints
1 <= N <= 100 -1000 <= A[] <= 1000
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
8 15 -2 2 -8 1 7 10 23
Output
5