Solution to the Find Digits problem.