Leetcode 1718. Construct the Lexicographically Largest Valid Sequence | Hello Interview