[Leet Code] Check if All Characters Have Equal Number of Occurrences

Leetcode: https://leetcode.com/problems/check-if-all-characters-have-equal-number-of-occurrences/

Problem:

Given a string s, return true if s is a good string, or false otherwise.

A string s is good if all the characters that appear in s have the same number of occurrences (i.e., the same frequency).

Example 1:

Input: s = "abacbc"
Output: true
Explanation: The characters that appear in s are 'a', 'b', and 'c'. All…