6-forcomp solve dictionaryByOccurrences