Accenture Interview Question

Reverse an array Without taking third variable