Microsoft Interview Question

Count the character values in a string using a counter