input: Write a python function to check for duplicates in a string.
  assert hasDuplicates("hello")==True
  assert hasDuplicates("world")==False
  assert hasDuplicates("abcdef")==False
output: def hasDuplicates(s):
      return len(s) != len(set(s))