C++ Solution to Leetcode 1647. Minimum Deletions to Make Character Fre