Question d’entretien chez Amazon

Implement a Depth First Search Tree with alternating layers.