Pergunta de entrevista da empresa CGI

how would you implement depth first traversal without using recursion ?