UST interview question

Character frequency of a string