Frage im Vorstellungsgespräch bei EPAM Systems

How to reverse an array and save it into the same array?