Problem 3545 · Easy
Keep the k most frequent letters and delete every other character.
Open the interactive visualisation