Google interview question

Implement an Array iterator.