spiralOrder = (matrix) => {
    const order = initOrder(matrix);/*                     | Ignore Auxilary Spsace O(ROWS * COLS) */

    spiral(matrix, order);          /* Time O(ROWS * COLS) | Ignore Auxilary Spsace O(ROWS * COLS) */

    return order;
}
Matrix - Mark Visited In Place
Array - Ignore Auxilary Space O(ROWS * COLS)
Time O(ROWS * COLS) | Space O(1)
https://leetcode.com/problems/spiral-matrix/
@param {number[][]} matrix
@return {number[]}