GlobalLogic Interview Question

Reverse an array without using extra space