Pergunta de entrevista da empresa Nagarro

Create a class such that on passing one array, when obj of the class is subscribed you should get data one by one.