Minimum Deletions For Exactly K Occurrences

Company: Meesho_23jan

Difficulty: hard