input: def remove_duplicates(arr):
      """Remove duplicates from a list of strings and return the resulting array.
      >>> remove_duplicates(['a', 'b', 'a', 'c', 'c', 'd'])
      ['a', 'b', 'c', 'd']
      >>> remove_duplicates(['apple', 'banana', 'apple', 'cherry', 'cherry', 'date'])
      ['apple', 'banana', 'cherry', 'date']
      """
      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