Check if rows are strictly increasing
for i in range ( n ) : NEW_LINE INDENT for j in range ( m - 1 ) : NEW_LINE INDENT if ( a [ i ] [ j ] >= a [ i ] [ j + 1 ] or b [ i ] [ j ] >= b [ i ] [ j + 1 ] ) : NEW_LINE INDENT return " No " NEW_LINE DEDENT DEDENT DEDENT