LiveRamp Interview Question

question for LiveRamp, find the minimum path between two nodes