Recived the following assesment codiluty from qualcomm
Given a 3 digit integer N,return the maximum possible 3 digit number that can be formed by increasing any of the digits by 1 atmost K times.
test case 1
input N=512 K=10 output 972
increase first digit by 1 four times,then increase second digit by 1 six time to get 972
Test case 2
input N=191;K=4 output 591
test case 3
input n=285,K=20 output 999