/**
 * This function finds available copies of a specific book in the library.
 *
 * @param library A dictionary representing the library's collection, where book titles are keys and the corresponding
 * values are boolean flags indicating whether the book is available or not.
 * @param bookTitle The title of the book to search for.
 * @return The number of available copies of the specified book.
 */
fun findAvailableBooks(library: Map<String, Boolean>, bookTitle: String): Int {

    var count = 0
    for ((book, isAvailable) in library) {
        if (book == bookTitle && isAvailable) {
            count++
        }
    }
    return count
}
/**
 * This function finds available copies of a specific book in the library.
 *
 * @param library A dictionary representing the library's collection, where book titles are keys and the corresponding
 * values are boolean flags indicating whether the book is available or not.
 * @param bookTitle The title of the book to search for.
 * @return The number of available copies of the specified book.
 */
fun findAvailableBooks(library: Map<String, Boolean>, bookTitle: String): Int {
/**
 * This function finds available copies of a specific book in the library.
 *
 * @param library A dictionary representing the library's collection, where book titles are keys and the corresponding
 * values are boolean flags indicating whether the book is available or not.
 * @param bookTitle The title of the book to search for.
 * @return The number of available copies of the specified book.
 */
fun findAvailableBooks(library: Map<String, Boolean>, bookTitle: String): Int {

    var count = 0
    for ((book, isAvailable) in library) {
        if (book == bookTitle && isAvailable) {
            count++
        }
    }
    return count
}