Given a string s, remove duplicate letters so that each letter appears once and only once. The resulting string should be the smallest lexicographical order among all possible results.
Click Run to execute sample tests.