input: 
  def find_mode(values: List[int]) -> int:
      """ Finds the mode of the given set of values.
      The mode is the number that appears most frequently in a set of numbers.
      
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      >>> find_mode([3, 5, 5, 4, 4, 3, 3])
      3
      """
  
output:     frequency = {}
      for value in values:
          if value in frequency:
              frequency[value] += 1
          else:
              frequency[value] = 1
      
      max_count = 0
      mode = None
      for key, count in frequency.items():
          if count > max_count:
              max_count = count
              mode = key
      
      return mode