LiveRamp interview question

bidirectional bfs