Project Euler 684 - Inverse Digit Sum

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