LiveRamp Interview Question

algorithm about finding most optimal path