Problem 316 · Medium
Remove duplicates keeping lexicographically smallest string.
Open the interactive visualisation