Remove Duplicate Letters
medium
1. Given a string s, remove duplicate letters so that every letter appears once and only once. 2. You must make sure your result is the first in dictionary order among all possible results.
Constraints
1. 1 <= s.length <= 10^4 2. s consists of lowercase English letters.
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
bcabc
Sample Output
abc
Question Video