[LC] Add solution to maximum subarray.