You are given a rectangular matrix (a list of lists) with at least one row and one column.
Return a new matrix that is matrix rotated 90 degrees clockwise.
After rotation, the first row of the result is the original first column read from bottom to top. 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]]
Returns
[[3, 1], [4, 2]]