Visa Inc. interview question

How to code an array