Sponsored
Use these hints if you're stuck. Try solving on your own first.
Each time, just cut the same character in prefix up to at max 9 times. It’s always better to cut a bigger prefix.
Solve with full IDE support and test cases