Adobe interview question

Graph DFS, queue with stack