Pergunta de entrevista da empresa LiveRamp

question for LiveRamp, find the minimum path between two nodes