Project Euler 185 - Number Mind

Official link: https://projecteuler.net/problem=185