Bank of America interview question

How to reverse an array?