zero, one, …, nine), the words were glued into one string, and then all the letters were shuffled. The result is the string letters.
Recover the original digits and return them as a string in ascending order. Digits may repeat.
The string is guaranteed to have been produced this way.letters="rotwheet" → '23'
The letters spell two and three, so the answer is "23".
letters="eninorez" → '09'
Only zero has a z; what remains spells nine. The answer is "09".
letters="vesenxsiixs" → '667'
e g h i f o n s r u t w v x zletters="rotwheet"
'23'
Run checks the first 3 tests in your browser. Submit checks all 168 tests on the server, hidden ones included.