. Reverse the array
You are given an array of integers. Your task is to reverse the array so that the last element becomes the first, the second last becomes the second, and so on.
Return or print the array after reversing it.
Input Format
The first line contains a single integer N, the size of the array.
The second line contains N space-separated integers representing the elements of the array.
Output Format
Print the reversed array in a single line with space-separated integers.
Constraints:
1 ≤ N ≤ 10^5
−10^9 ≤ Ai ≤ 10^9