Frage im Vorstellungsgespräch bei Capgemini Engineering

Given a program to reverse an array online.