Programming question

I am trying to write a program that returns integers corresponding to the numerals used to form the jumbled string.
Can anyone help!