input: Write a python function to reverse an array and create a class for it.
  assert ReverseArray([1, 2, 3, 4]).reverse() == [4, 3, 2, 1]
  assert ReverseArray([10, 20, 30, 40]).reverse() == [40, 30, 20, 10]
  assert ReverseArray([5]).reverse() == [5]
output: class ReverseArray:
      def __init__(self, array):
          self.array = array
  
      def reverse(self):
          return self.array[::-1]