input: def most_common(nums: List[int]) -> List[int]:
      """ Given an array of integers, this function returns the list of integers that appear most frequently.
      If there are multiple integers with the same highest frequency, it returns all of them.
      >>> most_common([3, 4, 1, 2, 5, 3, 3])
      [3]
      >>> most_common([1, 2, 3, 3, 4, 4])
      [3, 4]
      """
output:     frequency = {}
      for num in nums:
          if num in frequency:
              frequency[num] += 1
          else:
              frequency[num] = 1
      
      max_freq = max(frequency.values())
      result = [num for num, freq in frequency.items() if freq == max_freq]
      
      return result