public int possibleHandles(String familyName, String givenName) {
	HashSet<String> set=new HashSet<String>();
	for (int i = 0; i < familyName.length(); i++) {
		for (int j = 0; j < givenName.length(); j++) {
			set.add(familyName.substring(0, i+1)
					+givenName.substring(0,j+1)
					);
			
		}
	}
	return set.size();

   }