Concept Flow - Spiral Matrix Traversal
Start with boundaries: top, bottom, left, right
Traverse from left to right on top row
Move top boundary down
Traverse from top to bottom on right column
Move right boundary left
Traverse from right to left on bottom row
Move bottom boundary up
Traverse from bottom to top on left column
Move left boundary right
Check if boundaries crossed
Yes
End
We move around the matrix edges in a spiral by updating boundaries after each side traversal until all elements are visited.