Pregunta de entrevista de IBM

Describe a program which can choose the shortest path among few paths between two points.