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