Lyft interview question

Coding question involved building a graph and traversing it