refactored part3

refactored anagrams

refactored String.sort"