Pregunta de entrevista de Appian

Questions about my resume, DFS recursion problem