Optimal Solution III => Using Kadane's Algorithm. // Kadane's Algorithm with index tracking. // Returns the starting and ending indices of the maximum sum subarray.