The monk's problem - task 1

Information: The monk's problem - task 1