4-Paint using the number (2)

Program the robot to pick up each ball and put it in a hole.The robot can only carry one ball at a time.

The number of balls is indicated in front of the robot. You have to use it!