input: Write a python function to check if two strings are anagrams of each other.
  assert is_anagram('listen', 'silent') == True
  assert is_anagram('triangle', 'integral') == True
  assert is_anagram('apple', 'pale') == False
output: def is_anagram(str1, str2):
      return sorted(str1) == sorted(str2)