Question d’entretien chez Guidewire

Implement an iterator class for the given scenario in java