Infosys Interview Question

They have asked me to write a code for frequency of characters using hash table