Apple Interview Question

Implement a compound iterator in Java.