Pregunta de entrevista de Walt Disney Company

How to reverse an array in place.