Possible solutions for the problem shown in "Wonders of Numbers", chapter 23, "Cube labyrinth"