/**
 * This function takes in a sentence and a keyword as parameters.
 * It searches for the keyword within the sentence and counts the occurrences.
 * The function should return the index of the first occurrence of the keyword.
 * If the keyword is not found, the function should return -1.
 */
fun findKeyword(sentence: String, keyword: String): Int {

    var index = 0
    var occurrences = 0

    while (index < sentence.length) {
        if (sentence[index] == keyword[0]) {
            // Check if the remaining characters in the sentence match the keyword
            if (sentence.substring(index, index + keyword.length) == keyword) {
                return index
            }
        }
        index++
    }

    return -1
}
/**
 * This function takes in a sentence and a keyword as parameters.
 * It searches for the keyword within the sentence and counts the occurrences.
 * The function should return the index of the first occurrence of the keyword.
 * If the keyword is not found, the function should return -1.
 */
fun findKeyword(sentence: String, keyword: String): Int {
/**
 * This function takes in a sentence and a keyword as parameters.
 * It searches for the keyword within the sentence and counts the occurrences.
 * The function should return the index of the first occurrence of the keyword.
 * If the keyword is not found, the function should return -1.
 */
fun findKeyword(sentence: String, keyword: String): Int {

    var index = 0
    var occurrences = 0

    while (index < sentence.length) {
        if (sentence[index] == keyword[0]) {
            // Check if the remaining characters in the sentence match the keyword
            if (sentence.substring(index, index + keyword.length) == keyword) {
                return index
            }
        }
        index++
    }

    return -1
}