Reverses the order of the given array. The first element becomes the last and the last is the first after calling this method on an array.

Returns the new array with the new order.