Cruise interview question

Find the most efficient path through a maze