Pregunta de entrevista de Salesforce

Design a iterator (given certain conditions)