int checkMap(String A, String B) {
		char[] a = A.toCharArray();
		char[] b = B.toCharArray();
		int count = 0;
		for (int i = 0; i < a.length; i++) {
			for (int j = i; j < b.length; j++) {
				if (a[i] == b[j]) {
					b[j] = 0;
					count++;
					break;
				}
			}
		}
		return count;
	}