input: from typing import List
  
  def most_common(nums: List[int]) -> List[int]:
      """ Find the most common elements in an array of integers.
      >>> most_common([3, 4, 1, 2, 5, 3, 3])
      [3]
      >>> most_common([3, 4, 4, 2, 5, 2, 3])
      [3, 4, 2]
      """
output:     from collections import Counter
      
      count = Counter(nums)
      max_count = max(count.values())
      return [num for num, freq in count.items() if freq == max_count]