public static boolean findSubString(char[] subString, char[] parentString) {

        int indexOfSubString = 0;
        int solutionIndex = 0;

        for(int i=0; i<parentString.length; i++) {

            if(subString[indexOfSubString] == parentString[i]) {

                if(indexOfSubString == 0) {
                    solutionIndex = i;
                }
            }else {
                indexOfSubString = 0;
                if(subString[indexOfSubString] == parentString[i]) {
                    if(indexOfSubString == 0) {
                        solutionIndex = i;
                    }
                }
            }

            indexOfSubString ++;

            if(indexOfSubString >= subString.length) {
                break;
            }

        }

        if(indexOfSubString >= subString.length){
            return true;
        }else {
            return false;
        }
    }