Question d’entretien chez Amazon

DP Programming problem regarding how to code robot to move along a certain pathway.