Solved maximum-subarray.