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