I am not sure if i did everything right in this task, I tried to accomplish it using HashMap. How can i print results, if i have already maxEntry of my map? Thank you for any piece of advice :)