Find M-th number whose repeated sum of digits of a number is N
Given two positive integers N and M, The task is to find the M-th number whose sum of digits of a number until the sum becomes a single digit is N. Examples: Input: N = 1, M = 3Output: 19 The first two numbers are 1 and 10. Input: N = 2, M = 5Output: 38 The first four numbers are 2, 11, 20, and 29.