Yahoo interview question

Reverse the subarray of n elements