MaxOccurrence Codility Test

Counting test from Codility.