Pregunta de entrevista de Akamai

How to find distance between two nodes in a graph using map-reduce?