Maximum SubarrayGiven an integer array, return the greatest sum among all nonempty contiguous subarrays.