Pregunta de entrevista de Commonwealth Bank of Australia

How do you reverse an array