public boolean isThreeOfaKind(String cards[], int n) {
		int count = 0;
	    
		for (int i=0; i<n-2; i++) {
			if (cards[i].charAt(1) == cards[i+1].charAt(1) &&
					cards[i+1].charAt(1) == cards[i+2].charAt(1))
				count++;  }
				//return true;
		
		if (count == 1)
			return true;
		else
			return false;
	}