Copart Interview Question

Basic string manipulation question to find frequency of characters in a string