Domanda di colloquio di Tata Consultancy Services

They asked how to reverse an array