def isanagram(s, t):
    if len(s) != len(t):
        return False
chars = {}
for i in s:
    if i in chars:
        chars[i] += 1
else:
    chars[i] = 1
for i in t:
    if i not in chars:
        return False
else:
    pass
Find group of strings that are anagrams