Pergunta de entrevista da empresa Datadog

Find the shortest paths to a target node within a uni-directional graph with no cycles