The problem, in one line. Read a rectangular grid in a clockwise spiral from the top-left corner, ending in the middle, and return the values in that order. LeetCode 54.
The tell. An order that follows the outside edge and shrinks inward. When a path peels a grid layer by layer, keep four moving walls instead of a record of visited cells.