**Problem Statement:**
Given an integer array `nums`, find the subarray with the largest sum, and return its sum.
**Hint / Expected Approach:**
Local max vs global max tracking
**Edge Cases to Consider:**
- (1) All negative numbers
- (2) Single element
- (3) All zeros