Write a function that returns the reverse of the input array.
Input specification:
Input1: an array of numbers
Input2: length of the array(input1)
Output Specification:
Return an array in reverse order.
Example 1:
Input 1: {1,2,3}
Input 2: 3
Output: {3,2,1}
Explanation:
The reverse of the array {1,2,3} will be {3,2,1}
Example 2:
Input 1: {4,6,7,2}
Input 2: 4
Output: {2,7,6,4}
Explanation:
The reverse of the array {4,6,7,2} will be {2,7,6,4}
Solution in Python 3:
Solution in JAVA :
