Apple interview question

Implement a compound iterator in Java.