Leetcode 2165. Smallest Value of the Rearranged Number | Hello Interview