IBM Interview Question

Reverse a array in place