Problem 3662 · Easy
Total each letter across the string, then keep every occurrence of the letters whose total is below k.
Open the interactive visualisation