Apple Interview Question

Reverse an array in-place