Pregunta de entrevista de LiveRamp

algorithm about finding most optimal path