/**
 * Given a list of words and a character, this function calculates the number of occurrences of the character in each word.
 * Returns a dictionary where the keys are the words and the values are the counts of the character.
 */
fun calculateCounts(words: List<String>, character: Char): Map<String, Int> {

    val counts = mutableMapOf<String, Int>()
    for (word in words) {
        var count = 0
        for (char in word) {
            if (char == character) {
                count++
            }
        }
        counts[word] = count
    }
    return counts
}
/**
 * Given a list of words and a character, this function calculates the number of occurrences of the character in each word.
 * Returns a dictionary where the keys are the words and the values are the counts of the character.
 */
fun calculateCounts(words: List<String>, character: Char): Map<String, Int> {
/**
 * Given a list of words and a character, this function calculates the number of occurrences of the character in each word.
 * Returns a dictionary where the keys are the words and the values are the counts of the character.
 */
fun calculateCounts(words: List<String>, character: Char): Map<String, Int> {

    val counts = mutableMapOf<String, Int>()
    for (word in words) {
        var count = 0
        for (char in word) {
            if (char == character) {
                count++
            }
        }
        counts[word] = count
    }
    return counts
}