input: Write a python function to convert a CSV file to a dictionary with dates as keys and products as values.
  assert csv_to_dict('test1.csv') == {'2023-01-01': 'ProductA', '2023-01-02': 'ProductB'}
  assert csv_to_dict('test2.csv') == {'2022-12-25': 'ProductX', '2022-12-26': 'ProductY'}
  assert csv_to_dict('test3.csv') == {'2021-11-11': 'Product1', '2021-11-12': 'Product2'}
output: import csv
  
  def csv_to_dict(filename):
      result = {}
      with open(filename, newline='') as csvfile:
          reader = csv.reader(csvfile)
          for row in reader:
              date, product = row
              result[date] = product
      return result