If maximum value is found to be greater than a [ j ] , then that pair of indices ( i , j ) will add extra value to inversion of Type 1
if ( mx > a [ j ] ) : NEW_LINE INDENT return False NEW_LINE DEDENT