Place a chess queen on a square next to a corner of a chessboard as shown in the figure. The problem is to move the queen four times so that she passes through all 9 shaded squares. (A queen may move any number of squares in any single direction: horizontally, vertically, or diagonally.)