Project Euler 862 - Larger Digit Permutation

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