Pergunta de entrevista da empresa WePay

How to know if a given string contains characters only without using inbuilt functions