/**
 * This exercise requires the archaeologist to find the position of the given word within a sentence.
 * The archaeologist needs to concatenate multiple strings together to complete the task.
 *
 * @param sentence The sentence in which the word needs to be found.
 * @param word The word that needs to be located within the sentence.
 * @return The index of the first occurrence of the word within the sentence.
 */
fun findWordInString(sentence: String, word: String): Int {

    // Concatenate the word itself with space character to mimic a single word position
    val concatenatedWord = word + " "

    // Perform indexOf method on the sentence to find the desired word
    val position = sentence.indexOf(concatenatedWord)

    return position
}
/**
 * This exercise requires the archaeologist to find the position of the given word within a sentence.
 * The archaeologist needs to concatenate multiple strings together to complete the task.
 *
 * @param sentence The sentence in which the word needs to be found.
 * @param word The word that needs to be located within the sentence.
 * @return The index of the first occurrence of the word within the sentence.
 */
fun findWordInString(sentence: String, word: String): Int {
/**
 * This exercise requires the archaeologist to find the position of the given word within a sentence.
 * The archaeologist needs to concatenate multiple strings together to complete the task.
 *
 * @param sentence The sentence in which the word needs to be found.
 * @param word The word that needs to be located within the sentence.
 * @return The index of the first occurrence of the word within the sentence.
 */
fun findWordInString(sentence: String, word: String): Int {

    // Concatenate the word itself with space character to mimic a single word position
    val concatenatedWord = word + " "

    // Perform indexOf method on the sentence to find the desired word
    val position = sentence.indexOf(concatenatedWord)

    return position
}