Amdocs interview question

how do you write a for loop