Project Euler 714 - Duodigits

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

Note: I am not happy with my solution as it is brute force and takes ~180 seconds to run, 38s with pypy