Solution for Maximum Subarray.