Naive Solution Frequent Words Problem