Question 3
Bob designs a robot beaver that follows these commands.

English translation: Tx = go to location x; G = pick up wood; D = put down wood. For example, T4T2GT4D sends the robot to the bridge, then location 2, to pick up wood, back to the bridge, and to put down the wood. The robot works in this forest:

Which program collects the wood at locations 1, 2 and 3 and puts it at location 5? To cross the river, the robot must use the bridge.

English translation: Tx = go to location x; G = pick up wood; D = put down wood. For example, T4T2GT4D sends the robot to the bridge, then location 2, to pick up wood, back to the bridge, and to put down the wood. The robot works in this forest:

Which program collects the wood at locations 1, 2 and 3 and puts it at location 5? To cross the river, the robot must use the bridge.