Pergunta de entrevista da empresa Accenture

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