https://thebest681.blogspot.com/2023/01/leetcode-1505-minimum-possible-integer.html