Given an integer array, find the subarray with the largest sum and return its sum.
Click Run to execute sample tests.