Count occurrences of each character in a String
Write a program which prints the occurrences of each character in a string. It should not print duplicate characters. Below given example of input-output that demonstrates how to print the answer.
Example:
Input: aabbddbad
Output:
a : 3 b : 3 ...
nerdbash.hashnode.dev5 min read