input: def most_common(nums):
      """
      Given an array of integers, find the most common elements in the array.
      >>> most_common([3, 4, 1, 2, 5, 3, 3])
      [3]
      """
output:     count = {}
      for num in nums:
          if num in count:
              count[num] += 1
          else:
              count[num] = 1
      
      max_count = max(count.values())
      most_common_elements = [num for num, freq in count.items() if freq == max_count]
      
      return most_common_elements