Question d’entretien chez Bank of America

How to reverse an array?