Lexicographically Smallest Sequence