Duo Security interview question

Reverse an array in-place