1. This time Karel needs to go through several floors of an arcade game
shown in Fig. 65, collect all gems, and enter his home square which is located at the East end of the top floor. There is only one opening between each two floors. Initially, the robot stands somewhere in the first floor.
Note: the robot has to remember the positions of all gems and counts of all gems. At the end, the robot should print the positions.