Pregunta de entrevista de Google

Build a class that works as an iterator for a selected array