Pregunta de entrevista de Accenture

how to reverse an array? what does your parent do?