Yahoo interview question

topo sort using DFS approach