Vasundhara IT interview question

revers array without using thirt variable