Flexport Interview Question

a shortest path problem, need bfs or Dijkstra