Adobe Interview Question

Graph DFS, queue with stack