Question d’entretien chez NTT DATA

Write a program to reverse an array.