General Motors (GM) Interview Question

I cannot remember exactly but they was an algorithm about solving a robot's movement pattern.