Gist of the problem is : Given a string, you need to make the frequency of all characters the same by performing the minimum number of operations (insertions, deletions). But the actual question was really long, talking about something in tiktok.