it simplify version problem f2 the difference constraint F1 k le 2 F2 k le 10You give integer n find minimum integer x x ge n number x kbeautifulA number call kbeautiful decimal representation having lead zero contain k different digit Eg k 2 number 3434443 55550 777 21 kbeautiful number 120 445435 998244353