Pregunta de entrevista de Capgemini

They asked me to reverse an Array