Topics: Digit Dynamic Programming, HackerEarth March Circuits ‘19, Editorial, PR numbers
URL to the problem: https://www.hackerearth.com/problem/algorithm/pr-numbers-160aa0c9/description/