Function to find the maximum product of the sum of the subarray with its maximum element
def Kadane ( arr , n ) : NEW_LINE INDENT largestSum = 0 NEW_LINE currMax = 0 NEW_LINE currSum = 0 NEW_LINE DEDENT