Pergunta de entrevista da empresa OpenText

Write a program to extract digits from an alphanumeric string and print the digit sum.