input: def removeDuplicates(arr):
      """Remove all duplicates from the given array of strings and return the resulting array.
      >>> removeDuplicates(['a', 'b', 'a', 'c', 'c', 'd'])
      ['a', 'b', 'c', 'd']
      >>> removeDuplicates(['apple', 'banana', 'apple', 'banana', 'cherry'])
      ['apple', 'banana', 'cherry']
      >>> removeDuplicates([])
      []
      """
  
      result = [] 
    
      # traverse for all elements 
      for i in arr: 
        
        # check if exists in result 
        if i not in result: 
          result.append(i) 
    
      # return result 
      return result
output:     result = [] 
    
      # traverse for all elements 
      for i in arr: 
        
        # check if exists in result 
        if i not in result: 
          result.append(i) 
    
      # return result 
      return result