input: Write a function to create a MyList object, add some elements, and remove an element at a specific index. 
  assert manage_mylist(["add", 5, "add", 10, "add", 15, "remove", 1])==[5, 15]
  assert manage_mylist(["add", 1, "add", 2, "add", 3, "remove", 0, "remove", 1])==[2]
  assert manage_mylist(["add", 9, "add", 8, "add", 7, "remove", 2])==[9, 8]
output: def manage_mylist(commands):
      class MyList:
          def __init__(self):
              self.data = []
          
          def add(self, element):
              self.data.append(element)
          
          def remove(self, index):
              if 0 <= index < len(self.data):
                  self.data.pop(index)
      
      mylist = MyList()
      
      i = 0
      while i < len(commands):
          if commands[i] == "add":
              mylist.add(commands[i+1])
              i += 2
          elif commands[i] == "remove":
              mylist.remove(commands[i+1])
              i += 2
      
      return mylist.data