1718. Construct the Lexicographically Largest Valid Sequence - Solutions and Explanation | Vultr Docs