Max Sum Subarray

How can i know which subarray results in max sum by this approach