input: 
  from typing import List
  
  
  def find_mode(values: List[int]) -> int:
      """ Find the mode of the given list 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 = max(frequency.values())
      mode = [key for key, count in frequency.items() if count == max_count]
      
      return mode[0]