Problem 4 / 6

Computating frequency of each term