input: 
  def most_common_fruit(fruit_list):
      """Given a list of fruit names, return the most common fruit name.
  
      >>> most_common_fruit(['Apple', 'Orange', 'Apple', 'Pineapple', 'Grape', 'Apple'])
      'Apple'
      >>> most_common_fruit(['Banana', 'Banana', 'Orange', 'Orange', 'Orange'])
      'Orange'
      """
      freq_dict = {}
      for fruit in fruit_list:
          if fruit in freq_dict:
              freq_dict[fruit] += 1
          else:
              freq_dict[fruit] = 1
      max_freq = max(freq_dict.values())
      for fruit, freq in freq_dict.items():
          if freq == max_freq:
              return fruit
  
output:     freq_dict = {}
      for fruit in fruit_list:
          if fruit in freq_dict:
              freq_dict[fruit] += 1
          else:
              freq_dict[fruit] = 1
      max_freq = max(freq_dict.values())
      for fruit, freq in freq_dict.items():
          if freq == max_freq:
              return fruit