Question d’entretien chez IBM

How to implement depth first search in Java?