input: Write a function to remove all duplicates from an array of strings and return the resulting array. The function should traverse the input array, check if each element exists in the result array, and append it if it does not. Finally, the function should return the result array.
  assert removeDuplicates(['a', 'b', 'a', 'c', 'c', 'd'])==['a', 'b', 'c', 'd']
  assert removeDuplicates(['apple', 'banana', 'apple', 'cherry'])==['apple', 'banana', 'cherry']
  assert removeDuplicates([])==[]
  assert removeDuplicates(['unique'])==['unique']
  assert removeDuplicates(['a', 'a', 'a', 'a'])==['a']
output: def removeDuplicates(arr):
      result = []
      for item in arr:
          if item not in result:
              result.append(item)
      return result