Domanda di colloquio di OpenText

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