DeepRoute.ai interview question

Implement Depth First Search via c++.