Anagram means two words having same number of letters like Dormitory and Dirty room. The solution is actually very simple. We have to strip each string from everything except letters using regex, than we have to bring them to lower case, and then we can sort them!!!! By sorting two different words will became same in case anagram.
