input: Write a python function to create an Employee object and return its attributes as a dictionary.
  assert create_employee("Alice", 1, 50000) == {'name': 'Alice', 'id': 1, 'salary': 50000}
  assert create_employee("Bob", 2, 60000) == {'name': 'Bob', 'id': 2, 'salary': 60000}
  assert create_employee("Charlie", 3, 70000) == {'name': 'Charlie', 'id': 3, 'salary': 70000}
output: def create_employee(name, id, salary):
      class Employee:
          def __init__(self, name, id, salary):
              self.name = name
              self.id = id
              self.salary = salary
  
          def to_dict(self):
              return {
                  'name': self.name,
                  'id': self.id,
                  'salary': self.salary
              }
  
      emp = Employee(name, id, salary)
      return emp.to_dict()