Nagarro Interview Question

Reverse first n number in array.