4clj; solve problem 055 - frequencies