Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The minimized string will not contain duplicate characters.
The minimized string will contain all distinct characters of the original string.
Solve with full IDE support and test cases