Function that returns true if some character exists in the given string whose frequency is equal to the sum frequencies of other characters of the string
bool isFrequencyEqual ( string str , int len ) {