You are given a string s.
In one operation, you simultaneously remove the first occurrence of every distinct character present in s. This process is repeated until the string becomes empty.
Return the string s immediately before the last operation that makes it empty.
Constraints:
s.length
s consists only of lowercase English letters.
You are given a string s.
In one operation, you simultaneously remove the first occurrence of every distinct character present in s. This process is repeated until the string becomes empty.
Return the string s immediately before the last operation that makes it empty.
Constraints:
s.length
s consists only of lowercase English letters.