Start at the "S" and draw a path that passes through each white square exactly once. The path can only move horizontally, vertically, and diagonally, and can only change direction when it hits a black square, a square that contains part of the path so far, or the edge of the grid.