Interview Guides

Given an integer array nums, return the largest possible sum of any non-empty contiguous subarray. The solution should use Kadane's Algorithm, which scans the array once and decides at each position whether to extend the current subarray or start a new one.
1 <= nums.length <= 10^5-10^4 <= nums[i] <= 10^4