give string s remove duplicate letter letter appear you sure result smallest lexicographical order possible result Example 1input s bcabcoutput abcexample 2Input s cbacdcbcoutput acdb Constraints1 slength 104s consist lowercase english letter note this question 1081 httpsleetcodecomproblemssmallestsubsequenceofdistinctcharacter