Question d’entretien chez Hexaware Technologies

Code for reversing an array without using rev function