input: def removeDuplicates(array):
      """
      Optimize the following Python code to use built-in functions:
      
      def removeDuplicates(array): 
          finalArray = []
          for element in array: 
              if element not in finalArray: 
                  finalArray.append(element)
          return finalArray
  
      >>> removeDuplicates([1, 2, 3, 2, 4, 5, 1])
      [1, 2, 3, 4, 5]
      >>> removeDuplicates(['a', 'b', 'b', 'c', 'd', 'd', 'e'])
      ['a', 'b', 'c', 'd', 'e']
      """
output:     return list(dict.fromkeys(array))