Given an array of integers, find out and print the maximum sub-array of non-negative numbers. The sub-array should be continuous. Sub-array A is greater than subarray B if sum(A) > sum(B). And in case if the sum of two subarrays A and B is same, print the subarray with more number of elements.
First line contains N, the number of elements.
The next line contains N space-separated elements representing the elements of array A.
Print the maximum sub-array.
1 ≤ N ≤ 100
-1000 ≤ A[i] ≤ 1000
Dcoded By: Mrudul Sankhere
Solved By: 253
Maximum Marks: 12