Reverse Array

Reverse Array

Given an int array nums, return the array reversed.

Assumptions

  • nums will always contain exactly 5 int values
reverseArray( [ 1, 2, 3, 4, 5 ] ) => [ 5, 4, 3, 2, 1 ]
reverseArray( [ 0, 0, 2, 0, 1 ] ) => [ 1, 0, 2, 0, 0 ]