Pregunta de entrevista de Tuenti

Write a code, which represents the Iterator pattern!