Sponsored
Use these hints if you're stuck. Try solving on your own first.
Brute force all letters that could be removed.
Use a frequency array of size 26.
Solve with full IDE support and test cases