Write a function to reverse an array.
reverse([1, 2, 3, 4]) ➞ [4, 3, 2, 1] reverse([9, 9, 2, 3, 4]) ➞ [4, 3, 2, 9, 9] reverse([]) ➞ []
return