Accenture interview question

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