ADP interview question

Minimum distance required to reach destination node from source node