Shift 2D Grid
Shift every cell of a grid forward by k positions in reading order, wrapping from the end back to the start. The visual flattens the grid into a line, rotates it, and folds it back into rows.
Shift every cell of a grid forward by k positions in reading order, wrapping from the end back to the start. The visual flattens the grid into a line, rotates it, and folds it back into rows.