function solution(number, k){
let stack=[];
let answer='';
for (let i=0;i<number.length;i++){
let current=number[i];
while(k>0 && current>stack[stack.length-1]){
stack.pop();
k-=1;
}
stack.push(current)
}
console.log(stack, stack.length-k, k)
stack.splice(stack.length-k,k);
console.log('sta', stack)
answer=stack.join('')
return answer;
}