sketched idea
testing theory
produces answer, but it is not correct
found error in my interpretation of the question, it asks for all numbers not just 5 digit, fixed it
finds solution, a little bit slow
tried to make it faster, made it slower