

You don’t need to print anything. Just implement the given function.
Input: n = 6, arr = [5, 7, 8, 1, 6, 3]
Output: [3, 6, 1, 8, 7, 5]
Explanation: After reversing the array, it looks like this [3, 6, 1, 8, 7, 5].
The first line contains an integer n, the size of the array
The second line contains n integers, the array.
Return the reversed array.