Rocket Partners interview question

DFS in Java and similar coding exercises. Analyze a poorly written Java API for bugs.