input: Write a python function to create a Student object and return its attributes as a dictionary.
  assert get_student_info("Alice", 20, "A", "Computer Science") == {'name': 'Alice', 'age': 20, 'grade': 'A', 'major': 'Computer Science'}
  assert get_student_info("Bob", 22, "B", "Mathematics") == {'name': 'Bob', 'age': 22, 'grade': 'B', 'major': 'Mathematics'}
  assert get_student_info("Charlie", 19, "A+", "Physics") == {'name': 'Charlie', 'age': 19, 'grade': 'A+', 'major': 'Physics'}
output: def get_student_info(name, age, grade, major):
      class Student:
          def __init__(self, name, age, grade, major):
              self.name = name
              self.age = age
              self.grade = grade
              self.major = major
          
          def to_dict(self):
              return {
                  'name': self.name,
                  'age': self.age,
                  'grade': self.grade,
                  'major': self.major
              }
      
      student = Student(name, age, grade, major)
      return student.to_dict()