Count Characters

Function Kata “Count Characters”

Write a function to count the number of occurrences of characters in a string. The input to the function is a string, its output a Dictionary (map) of char/int pairs.

Processing the string “HelLo wOrld” would result in:

Variations #1

Handle upper and lower case the same. The string “HelLo wOrld” would then result in: