sentenceAnagrams implemented