Capgemini interview question

They asked me to reverse an Array