XXXX Brewery Interview Question

Count the letters in strings without using inbuilt function