public int findCamps(String trail, String[] plans) {
		char[] trailChars = trail.toCharArray();
		int min = Integer.MAX_VALUE;
		for (String str : plans) {
			char[] plan = str.toCharArray();
			int count = 0;
			for (int i = 0; i < plan.length; i++) {
				if (plan[i] == 'C') {
					if (trailChars[i] == '.') {
						count++;
					} else {
						count = Integer.MAX_VALUE;
						break;
					}
				}
			}

			min = Math.min(min, count);
		}
		if (min == Integer.MAX_VALUE) {
			return -1;
		}
		return min;
	}