input: Write a function that takes a list containing fruit names and returns the most common fruit name. The function should loop through the list, count the frequency of each fruit, and then determine which fruit appears the most frequently. If multiple fruits have the same highest frequency, return any one of them.
  
  def most_common_fruit(fruit_list):
      # Dictionary to get count of each fruit
      freq_dict = {}
   
      # Count frequency of each fruit
      for fruit in fruit_list:
          if fruit in freq_dict:
              freq_dict[fruit] += 1
          else:
              freq_dict[fruit] = 1
   
      # Get maximum frequency 
      max_freq = 0
      for freq in freq_dict.values():
          if freq > max_freq:
              max_freq = freq
   
      # Get the most common fruit
      most_common_fruit = None
      for fruit, freq in freq_dict.items():
          if freq == max_freq:
              most_common_fruit = fruit
              break
   
      return most_common_fruit
  
  assert most_common_fruit(['Apple', 'Orange', 'Apple', 'Pineapple', 'Grape', 'Apple']) == 'Apple'
  assert most_common_fruit(['Apple', 'Apple', 'Apple', 'Orange', 'Orange', 'Orange']) == 'Apple' or 'Orange'
  assert most_common_fruit(['Grape', 'Grape', 'Grape', 'Apple', 'Apple', 'Apple']) == 'Grape' or 'Apple'
  assert most_common_fruit(['Kiwi', 'Orange', 'Orange', 'Kiwi', 'Kiwi']) == 'Kiwi'
output: def most_common_fruit(fruit_list):
      freq_dict = {}
      for fruit in fruit_list:
          if fruit in freq_dict:
              freq_dict[fruit] += 1
          else:
              freq_dict[fruit] = 1
      max_freq = 0
      for freq in freq_dict.values():
          if freq > max_freq:
              max_freq = freq
      most_common_fruit = None
      for fruit, freq in freq_dict.items():
          if freq == max_freq:
              most_common_fruit = fruit
              break
      return most_common_fruit