Clover interview question

How would you go about implementing a loop for something?