input: Write a function to remove all duplicates from an array of strings and return the resulting array. If the given array is empty, return an empty array.
  def removeDuplicates(arr):
   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
  
  assert removeDuplicates(['a', 'b', 'a', 'c', 'c', 'd'])==['a', 'b', 'c', 'd']
  assert removeDuplicates(['a', 'a', 'a', 'a'])==['a']
  assert removeDuplicates([])==[]
  assert removeDuplicates(['b', 'b', 'b', 'b', 'b'])==['b']
  assert removeDuplicates(['abc', 'abc', 'def', 'def'])==['abc', 'def']
output: def removeDuplicates(arr):
   result = []
   for i in arr:
    if i not in result:
     result.append(i)
   return result