You are given a rectangular matrix (a list of lists) with at least one row and one column.
Return a new matrix that is the transpose of matrix: the element at row i, column j of the result equals the element at row j, column i of the input.
If the input has r rows and c columns, the result has c rows and r columns. The original matrix must not be modified.
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[[1, 2, 3], [4, 5, 6]]
Returns
[[1, 4], [2, 5], [3, 6]]