Lexicographically Smallest Equivalent String | Leetcode 1061