input: from typing import List
  
  def removeDuplicates(array: List) -> List:
      """ Remove duplicates from a given list of elements using built-in functions.
      >>> removeDuplicates([1, 2, 2, 3, 4, 4, 5])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates(['a', 'b', 'b', 'c', 'd', 'd'])
      ['a', 'b', 'c', 'd']
      """
      finalArray = []
      for element in array: 
          if element not in finalArray: 
              finalArray.append(element)
      return finalArray
output:     return list(dict.fromkeys(array))