IBM Interview Question

How to implement depth first search in Java?