Pregunta de entrevista de FDM Group

How would you reverse an an array?