Matrix Rotation: In this problem, we are given a square matrix (NxN). You can rotate the matrix 90°, 180°, or 270° clockwise. This means you can change the orientation of the matrix as if you were turning the paper.
Spiral Traversal: In this problem, the goal is to traverse a matrix in a spiral order starting from the top-left corner. This means we move right along the top row, then down the rightmost column, then left along the bottom row, then up along the leftmost column, and repeat the process until all elements are visited.