public static int BruteForce (String str, int start, String pattern) {
		if (str == null || str.length() == 0 || pattern == null || pattern.length() == 0) {
			return -1;
		}
		int i = start, j =0;
		int sizeS = str.length(), sizeP = pattern.length();
		
		while (i < sizeS && j < sizeP) {
			if (str.charAt(i) == pattern.charAt(j)) {
				i++;
				j++;
			} else {
				i = i - j + 1;   
				j = 0;
			}
		}
		if (j == sizeP) {
			return (i - j);  
		} else {
			return -1;
		}
	}