Limits: 1s, 256 MB
Bear Limak is very much fond of chocolate. His mom wants her son to study hard and develop his skills. So she decided to give some tasks to her son. She offers Limak that if he can solve those tasks, then she will give him a chocolate as a reward. The task is, she will give him a string S. Limak has to find out which character appeared how many times in the given string.
This is a companion discussion topic for the original entry at https://toph.co/p/you-want-chocolate