Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Which set of digits have the valid numbers?
Only 0, 1, 6, 8, 9 are the valid set of digits, do a backtracking to generate all the numbers containing this digits and check they are valid.