A better solution for the robot problem 0023

A better solution for the robot problem 0023