Ecolab Interview Question

Program to get the count of all the characters in the string