Solution to the monk problem

The monk problem (Duncker, 1945)

How not to represent the problem:

A more productive way to represent the problem: