DWITE Online Computer Programming Contest, November 2002, Problem 5
You are to determine the frequency of each letter of the alphabet in a line of characters.
The input will contain five lines of data. Each line will contain at most ~255~ characters.
The output will contain five lines of data, each displaying the frequency of the letters of the alphabet, in alpabetical order, from the corresponding lines of the input file. Display only those letters that occurred at least once. Separate the letter from the frequency with a hyphen and follow the frequency with a colon (except the last one).
Sample Input (2 lines only)
This sentence has 4 t's in it. And this one only has one.