Pregunta de entrevista de Interactive Brokers

Implement an iterator class which accepts an iterator. hasNext should return the element and next will return the element as well as move the iterator.