Bank of America Interview Question

How to reverse an array?