static public int getCharWithMaxFreq(int[] freq, boolean[] except) {
		int max = 0;
		int maxC = -1;
		for(int i = 0; i < charSize; i++) {
			if(!except[i] && freq[i] > max) {
				max = freq[i];
				maxC = i;
			}
		}
		
		return maxC;
	}