What if array is filled with negative numbers

Array = [-2,-1]
what should be the maximum subarray for this input
is it 0 or -1

hi @discobot ans should be -1

Hi! To find out what I can do, say @discobot display help.