update maximum Length and maximum Sum according to the given conditions
if ( maxLen [ 0 ] < Len ) : NEW_LINE INDENT maxLen [ 0 ] = Len NEW_LINE maxSum [ 0 ] = Sum NEW_LINE DEDENT elif ( maxLen [ 0 ] == Len and maxSum [ 0 ] < Sum ) : NEW_LINE INDENT maxSum [ 0 ] = Sum NEW_LINE DEDENT return NEW_LINE