3) Create another class named Frequency and implement its code as follows:
Write a program that asks for a common dictionary word. Assume there will be no whitespace, numbers, or symbols. Print
out a tally (i.e., the frequency) of how many times you see a particular character and print it out. The following is a Sample
Interaction for this exercise. Assume that the user input is in blue.
Please enter a common word: Potato
The following letters were found with the following frequencies:
P, 1
O, 2
T, 2
A, 1
You should not treat the same uppercase or lowercase letter as being two separate characters. For example, if the user
entered Roar (which has both an uppercase and a lowercase 'r'), the expected output would be:
R, 2
O, 1
A, 1