Sponsored
Use these hints if you're stuck. Try solving on your own first.
The order you choose 2 characters to remove doesn't matter.
Keep applying the mentioned step to s till the length of the string is not changed.
Solve with full IDE support and test cases