Maximum Subarray

Exercise from LeetCode, it is accepted