Capgemini Interview Question

How to use Iterator ?