Given an m × n matrix, return all of its elements in spiral order: start at the top-left corner and walk right across the top row, then down the right column, then left along the bottom row, then up the left column, spiraling inward until every element has been visited.
[[1,2,3],[4,5,6],[7,8,9]][[1,2,3,4],[5,6,7,8],[9,10,11,12]][[7]][[1,2],[3,4]][[1],[2],[3],[4]][[1,2,3,4]]