Pregunta de entrevista de Synopsys

Shortest path in Undirected Graph having unit distance