Problem
Given an integer arraynums, find the subarray with the largest sum, and return its sum.
Examples
Constraints
1 <= nums.length <= 10^5-10^4 <= nums[i] <= 10^4
O(n) solution, try coding another solution using the divide and conquer approach, which is more subtle.