Remove duplicate letters so that every letter appears exactly once and the result is the lexicographically smallest possible subsequence — then the largest.
Remove duplicate letters so that every letter appears exactly once and the result is the lexicographically smallest possible subsequence — then the largest.
Remove duplicate letters so that every letter appears exactly once and the result is the lexicographically smallest possible subsequence — then the largest.
Opens with the full question.