EAI Technologies interview question

Please write a for loop