Fill in maxFrequency so that it returns how many times the most common word appears.
maxFrequency
Two steps: build the frequency map, then scan its values for the largest. For an empty array return 0. The program prints 3 and then 0.
0
3