EAI Technologies Interview Question

Please write a for loop