Yahoo Interview Question

Reverse the subarray of n elements