Domanda di colloquio di Microsoft

A problem based on tracing shortest path in a graph