Given an array, reverse its elements in-place.
nums = array of integers
nums array reversed
Example 1:
Input:
nums = [1,2,3,4]
Output:
[4,3,2,1]
Explanation:
Reversed array.