input: def removeDuplicates(array):
      """ Remove duplicates from a given list of elements using a more efficient approach.
      >>> removeDuplicates([1, 2, 1, 2, 3])
      [1, 2, 3]
      >>> removeDuplicates(['a', 'b', 'a', 'c'])
      ['a', 'b', 'c']
      """
      finalArray = []
      for element in array:
          if element not in finalArray:
              finalArray.append(element)
      return finalArray
output:     finalArray = []
      for element in array:
          if element not in finalArray:
              finalArray.append(element)
      return finalArray