Pregunta de entrevista de Amazon

Implement a Depth First Search Tree with alternating layers.