LiveRamp interview question

algorithm about finding most optimal path