class Solution:
def getCountDict(self, string) -> dict:
s_chars = list(set(string))
count_dict = {}
for c in string:
if c in count_dict:
count_dict[c] += 1
else:
count_dict[c] = 1
return count_dict
def isAnagram(self, s: str, t: str) -> bool:
if self.getCountDict(s) == self.getCountDict(t):
return True
return False