input: from typing import List
  
  
  def removeDuplicates(array: List[int]) -> List[int]:
      """Given an array of integers, remove all duplicate elements.
      Use the set built-in function to optimize the process.
      >>> removeDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates([5, 5, 5, 5, 5])
      [5]
      """
      return list(set(array))
output:     return list(set(array))