input: from typing import List
  
  def removeDuplicates(arr: List[str]) -> List[str]:
      """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', 'cherry', 'banana', '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