Example 1-14: Write a program to print a histogram of the frequencies of different characters in its input.