How to print that maximum sum subarray?

How to print that maximum sum subarray in this kadane algorithm approach?

https://www.techiedelight.com/print-continuous-subarray-with-maximum-sum/
Please refer to this link.