Return sum of maximum sum alternating sequence starting with arr [ 0 ] and is first decreasing .
def maxAlternateSum ( arr , n ) : NEW_LINE INDENT if ( n == 1 ) : NEW_LINE INDENT return arr [ 0 ] NEW_LINE DEDENT DEDENT