Uber interview question

Recursively traverse a a directed graph