TowerIQ interview question

What methods you know for iterating through array?