All digits of num are not present in string s
if ( inn == - 1 ) { return num ; } for ( let dig = String ( num [ inn ] ) ; dig >= ' ' ; dig -- ) { if ( vis_s [ Number ( dig ) - ' ' ] == 0 ) { num [ inn ] = dig ; break ; } } let LargestDig = ' ' ; for ( let dig = ' ' ; dig >= ' ' ; dig -- ) { if ( vis_s [ dig - ' ' ] == false ) {