Pregunta de entrevista de OpenText

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