my difficulty: super easy
sol1) sorting
anagram means each character’s number of appearance is same. so if some words are anagram, sorting their characters will be same
sol2) iteration
as I said above, to check whether some two words are anagram, we can count their characters. and then compare each character’s number of appearance is same or not.