Bank of America Interview Question

Write me a code to count the frequency of a letter in a string