dictionaryByOccurrences value being calculated and wordAnagrams function implemented.