Pergunta de entrevista da empresa Chartboost

Implement an Iterator of Iterators class. The class should have next() and hasNext() and should run in O(1) time. Everytime next() is called, it should hit the consecutive iterator.