/**
 * This exercise requires iterating over each character of a string and finding the count of books
 * that contain a specific character.
 *
 * @param books a list of strings representing book titles
 * @param character a single character to search for
 * @return an integer representing the number of books that contain the specified character
 */
fun countBooksWithCharacter(books: List<String>, character: Char): Int {

    var count = 0
    for (book in books) {
        for (char in book.toLowerCase()) {
            if (char == character.toLowerCase()) {
                count++
            }
        }
    }
    return count
}
/**
 * This exercise requires iterating over each character of a string and finding the count of books
 * that contain a specific character.
 *
 * @param books a list of strings representing book titles
 * @param character a single character to search for
 * @return an integer representing the number of books that contain the specified character
 */
fun countBooksWithCharacter(books: List<String>, character: Char): Int {
/**
 * This exercise requires iterating over each character of a string and finding the count of books
 * that contain a specific character.
 *
 * @param books a list of strings representing book titles
 * @param character a single character to search for
 * @return an integer representing the number of books that contain the specified character
 */
fun countBooksWithCharacter(books: List<String>, character: Char): Int {

    var count = 0
    for (book in books) {
        for (char in book.toLowerCase()) {
            if (char == character.toLowerCase()) {
                count++
            }
        }
    }
    return count
}