Amazon Robotics interview question

A problem about finding the shortest time-consuming path for a robot