Frage im Vorstellungsgespräch bei Hexaware Technologies

Code for reversing an array without using rev function