rotate = (matrix) => {
    transpose(matrix);/* Time O(ROWS * COLS) */
    reflect(matrix);  /* Time O(ROWS * COLS) */
}
Time O(ROWS * COLS) | Space O(1)
https://leetcode.com/problems/rotate-image/
@param {number[][]} matrix
@return {void} Do not return anything, modify matrix in-place instead.