public String find(String word) {
		int length = word.length();
		char previousLetter = word.charAt(0);
		int[] charTotal = new int[26];
		charTotal[previousLetter-'A']++;
		
		for (int i=1;i<length;i++) {
			char currentLetter = word.charAt(i);
			charTotal[currentLetter-'A']++;
			if (charTotal[currentLetter-'A']==4) {
				return DISLIKES;
			}
			if (previousLetter == currentLetter) {
				return DISLIKES;
			}
			previousLetter = currentLetter;
		}
		
		while (true) {
			String wordNew = "";
			int[] charTotalNew = new int[26];
			previousLetter = ' ';
			length = word.length();
			for (int i=0;i<length;i++) {
				char currentLetter = word.charAt(i);
				if (charTotal[currentLetter-'A']>=2) {
					if (currentLetter!=previousLetter) {
						wordNew += currentLetter;
						previousLetter = currentLetter;
						charTotalNew[currentLetter-'A']++;
					}
				}
			}
			if (word.equals(wordNew)) {
				charTotal = charTotalNew;
				word = wordNew;
				break;
			}
			charTotal = charTotalNew;
			word = wordNew;
		}
		
		
		if (word.length()>0) {
			return DISLIKES;
		}
		
		return LIKES;
	}