/**
 * Given a list of books and a map of borrowers,
 * find the books that are currently available.
 *
 * @param books A list of books, where each book is represented as a string
 * @param borrowers A map of borrowers, where each key-value pair represents a borrower and the book they borrowed
 * @return A list of available books
 */
fun findAvailableBooks(books: List<String>, borrowers: Map<String, String>): List<String> {

    val availableBooks = mutableListOf<String>()

    for (book in books) {
        var borrowed = false

        for ((_, borrowedBook) in borrowers) {
            if (borrowedBook == book) {
                borrowed = true
                break
            }
        }

        if (!borrowed) {
            availableBooks.add(book)
        }
    }

    return availableBooks
}
/**
 * Given a list of books and a map of borrowers,
 * find the books that are currently available.
 *
 * @param books A list of books, where each book is represented as a string
 * @param borrowers A map of borrowers, where each key-value pair represents a borrower and the book they borrowed
 * @return A list of available books
 */
fun findAvailableBooks(books: List<String>, borrowers: Map<String, String>): List<String> {
/**
 * Given a list of books and a map of borrowers,
 * find the books that are currently available.
 *
 * @param books A list of books, where each book is represented as a string
 * @param borrowers A map of borrowers, where each key-value pair represents a borrower and the book they borrowed
 * @return A list of available books
 */
fun findAvailableBooks(books: List<String>, borrowers: Map<String, String>): List<String> {

    val availableBooks = mutableListOf<String>()

    for (book in books) {
        var borrowed = false

        for ((_, borrowedBook) in borrowers) {
            if (borrowedBook == book) {
                borrowed = true
                break
            }
        }

        if (!borrowed) {
            availableBooks.add(book)
        }
    }

    return availableBooks
}