Pregunta de entrevista de LinkedIn

Graph question asking minimum distance between two nodes.