Trident Group interview question

Depth first search in a Graph