Given an array A[] of size n, write a program to reverse the array.

Example 1

Input: A[] = [1, 2, 3]
Output: A[] = [3, 2, 1]

Example 2

Input: A[] = [4, 5, 1, 2]
Output: A[] = [2, 1, 5, 4]