Read a first list (a count, then that many words) and a second list the same way.
Print three numbers, each on its own line: the highest frequency in the first list, how many distinct values appear in both lists, and how many items of the first list are missing from the second (counting every occurrence).
For 6 / a b a c a b and 3 / b c d:
3
2
3
All three patterns of this lesson in one program: a frequency map, an intersection, and a difference.