Pergunta de entrevista da empresa Uber

A Graph based traversal question along with the use of priority queue