input: def most_common_fruit(fruits: List[str]) -> str:  
      """  
      Takes a list of fruit names and returns the most common fruit name.  
      >>> most_common_fruit(['Apple', 'Orange', 'Apple', 'Pineapple', 'Grape', 'Apple'])  
      'Apple'  
      """
output:     fruit_count = {}
      for fruit in fruits:
          if fruit in fruit_count:
              fruit_count[fruit] += 1
          else:
              fruit_count[fruit] = 1
      
      max_count = 0
      most_common = None
      for fruit, count in fruit_count.items():
          if count > max_count:
              max_count = count
              most_common = fruit
      
      return most_common