Printing the subarray with maximum sum

Can you please share the code to print the subarray with maximum sum like we did in the previous two videos?