Asana Interview Question

Question about graph traversal (Dijsktra, and A-Star)