Find the Lexicographically Smallest Valid Sequence - DSA Problem | Talentd