If all the elements are negative we grt the maxsum as always zero which is not correct.
What if all the elements in the array are negative?(Kdane's Algorithm)
NO it is correct
if all nos are negative then we have an empty subset/subarray whose sum is zero