Infosys Interview Question

How do you iterate through a program?