Capgemini interview question

How to use Iterator ?