- Mathematical, number-digits

Minimize increments to make digit sum of N at most S

Given two positive integers N and S. The task is to minimize the number of increments on N (N = N + 1) required to make the sum of digits of N less than or equal to S. NOTE: N can range up to an18 digit number and 1