Easy
Letter Count
Read a word and print each distinct letter with its count, in the order the letters first appear, as
letter:count on separate lines.Input
One word.
Output
One line per letter.
Sample 1
Input
banana
Output
b:1 a:3 n:2
Sample 2
Input
abc
Output
a:1 b:1 c:1
Output appears here