bet365 interview question

How would you iterate through a variable