input: Write a python function to check if two strings are anagrams.
  assert are_anagrams("listen", "silent") == True
  assert are_anagrams("hello", "bello") == False
  assert are_anagrams("triangle", "integral") == True
output: def are_anagrams(str1, str2):
      return sorted(str1) == sorted(str2)