Uber Interview Question

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