Microsoft interview question

How would you iterate through a list