Standard Chartered Bank interview question

How to traverse in an array ?