input: Write a python function to convert a CSV string to a list of dictionaries, where each dictionary represents a row with keys as headers.
  assert convert_csv_to_list("name,age,address,zip\nJohn Doe,22,ABC Street,07777\nMary Smith,26,XYZ Street,02222") == [{'name': 'John Doe', 'age': '22', 'address': 'ABC Street', 'zip': '07777'}, {'name': 'Mary Smith', 'age': '26', 'address': 'XYZ Street', 'zip': '02222'}]
  assert convert_csv_to_list("name,age\nAlice,30\nBob,25") == [{'name': 'Alice', 'age': '30'}, {'name': 'Bob', 'age': '25'}]
output: def convert_csv_to_list(csv_string):
      lines = csv_string.split('\n')
      headers = lines[0].split(',')
      result = []
      for line in lines[1:]:
          values = line.split(',')
          row_dict = {headers[i]: values[i] for i in range(len(headers))}
          result.append(row_dict)
      return result