Mu Sigma Interview Question

write an algorithm of path of a robot?