input: Write a function to find all possible anagrams of a given word.
  assert find_anagrams("abc") == ['a', 'ab', 'abc', 'b', 'bc', 'c']
  assert find_anagrams("ab") == ['a', 'ab', 'b']
  assert find_anagrams("abcd") == ['a', 'ab', 'abc', 'abcd', 'b', 'bc', 'bcd', 'c', 'cd', 'd']
output: def find_anagrams(word):
      result = []
      for i in range(len(word)):
          for j in range(i + 1, len(word) + 1):
              result.append(word[i:j])
      return result