if new element is less than previous minimum element then update it so that we may get maximum difference in remaining array
if ( rowSum [ i ] < min_element ) : NEW_LINE INDENT min_element = rowSum [ i ] NEW_LINE DEDENT return max_diff NEW_LINE