Pregunta de entrevista de Yahoo

a problem about graph analytics.