Nagarro interview question

Reverse first n number in array.