Pergunta de entrevista da empresa Flatiron Health

typical DFS applied on trees, DAG, and graph