Uber Interview Question

Recursively traverse a a directed graph