/**
 * This function takes a word and a character as input and counts the number of occurrences of that character in the word.
 *
 * @param word The word to be analyzed.
 * @param char The character to be counted.
 * @return The number of occurrences of the character in the word.
 */
fun countLetterOccurrences(word: String, char: Char): Int {

    var count = 0
    for (letter in word) {
        if (letter.toLowerCase() == char.toLowerCase()) {
            count++
        }
    }
    return count
}
/**
 * This function takes a word and a character as input and counts the number of occurrences of that character in the word.
 *
 * @param word The word to be analyzed.
 * @param char The character to be counted.
 * @return The number of occurrences of the character in the word.
 */
fun countLetterOccurrences(word: String, char: Char): Int {
/**
 * This function takes a word and a character as input and counts the number of occurrences of that character in the word.
 *
 * @param word The word to be analyzed.
 * @param char The character to be counted.
 * @return The number of occurrences of the character in the word.
 */
fun countLetterOccurrences(word: String, char: Char): Int {

    var count = 0
    for (letter in word) {
        if (letter.toLowerCase() == char.toLowerCase()) {
            count++
        }
    }
    return count
}