input: def find_mode(values: List[int]) -> int:
      """
      Find the mode of the given set of values.
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      """
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