Find the Lexicographically Smallest Valid Sequence - Practice Coding | SlaveCode