Accenture interview question

Reverse an array Without taking third variable