Allerin Technologies Interview Question

count character in string