There is nothing more beautiful than just an integer number.

You are given an integer n. Return the smallest integer greater than or equal to n that contains exactly k distinct digits in decimal notation.

47

1

Returns: 55

7

3

Returns: 102

69

2

Returns: 69

12364

Returns: 12411