Pregunta de entrevista de Hexaware Technologies

Code for reversing an array without using rev function