General Motors (GM) interview question

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