OpenText Interview Question

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