Given an m-by-n binary matrix, exchange rows with columns. Format: All rows end with 'n' (representing newline), including the last row. Constraints: 1 ≤ m,n ≤ 7