Problem 3784 · Medium
Keep the letter whose total deletion cost is largest and delete every other character.
Open the interactive visualisation