Reduce the loop when returning a reversedArray.

Just a simpler way of returning a reversed array. Still passes test.