Concept Flow - Kadane's Algorithm Maximum Subarray
Start with first element as current and max sum
Iterate through array elements
Update current sum: max(current sum + element, element)
Update max sum if current sum is greater
Repeat until end of array
Return max sum found
Kadane's algorithm scans the array once, keeping track of the current subarray sum and the maximum sum found so far.
