Pergunta de entrevista da empresa Cadence Design Systems

write an iterative version of DFS