Pergunta de entrevista da empresa FDM Group

How would you reverse an an array?