HSBC Interview Question

Find frequency of unique characters in a string