//Given a positive integer N. You have to find Nth natural number after removing all the numbers containing digit D.
Example 1:
Input:
N = 8
D = 9
Output:
8
Explanation:
After removing natural numbers which contains
digit D = 9, first 8 numbers are 1,2,3,4,5,6,7,8
and 8th number is 8.
Example 2:
Input:
N = 8
D = 9
Output:10
Explanation:
After removing natural numbers which contains
digit 9, first 9 numbers are 1,2,3,4,5,6,7,8,10
and 9th number is 10.