input: 
  def find_mode(values: List[int]) -> int:
      """ Find the mode of the given list of integers. The mode is the number 
      that appears most frequently in the list. If there is more than one number
      with the same highest frequency, return the first one that appears.
      >>> find_mode([1, 2, 3, 2, 4, 2])
      2
      >>> find_mode([5, 5, 3, 3, 3, 1, 1])
      3
      """
  
output:     frequency = {}
      for value in values:
          if value in frequency:
              frequency[value] += 1
          else:
              frequency[value] = 1
      
      max_freq = 0
      mode = None
      for value, freq in frequency.items():
          if freq > max_freq:
              max_freq = freq
              mode = value
      
      return mode