Count of numbers from range [L, R] whose sum of digits is Y | Set 2
Given three positive integers L, R and Y, the task is to count the numbers in the range [L, R] whose sum of digits is equal to Y Examples: Input: L = 500, R = 1000, Y = 6Output: 3Explanation: Numbers in the range [500, 600] whose sum of digits is Y(= 6) are: 501 = 5 + 0 + 1 = 6 510 = 5 + 1 + 0 = 6 6