SAP interview question

Write code to count the letters