Mubashir shuffled a given string of letters by mistake. Some letters in the input string are representing a digit (from zero to nine). Help him to recover all the digits.
"OTNE" cannot be recovered to 1."ONENO" results to 11, because E can be used two times."No digits found""ENOWT" will be recovered to 12 and not to 21.digitsRecovery("NEO") ➞ "1"
digitsRecovery("ONETWO") ➞ "12"
digitsRecovery("ZYX") ➞ "No digits found"
digitsRecovery("NEOTWONEINEIGHTOWSVEEN") ➞ "12219827"
You can use dictionary in the code tab.