Airbnb interview question

1 graph question (topological sort)