Pregunta de entrevista de Tata Consultancy Services

They asked how to reverse an array