/**
 * Given a librarian's name, a list of available books, and a list of books to borrow, update the list of available books
 * by removing the borrowed books.
 *
 * @param librarian The librarian's name.
 * @param books A list of available books.
 * @param borrowedBooks A list of books to be borrowed.
 * @return The updated list of available books after removing the borrowed books.
 */
fun borrowBooks(librarian: String, books: MutableList<String>, borrowedBooks: List<String>): List<String> {

    println("Welcome, $librarian!")
    println("Here are the available books:")

    for (book in books) {
        println(book)
    }

    println("")

    return books - borrowedBooks
}
/**
 * Given a librarian's name, a list of available books, and a list of books to borrow, update the list of available books
 * by removing the borrowed books.
 *
 * @param librarian The librarian's name.
 * @param books A list of available books.
 * @param borrowedBooks A list of books to be borrowed.
 * @return The updated list of available books after removing the borrowed books.
 */
fun borrowBooks(librarian: String, books: MutableList<String>, borrowedBooks: List<String>): List<String> {
/**
 * Given a librarian's name, a list of available books, and a list of books to borrow, update the list of available books
 * by removing the borrowed books.
 *
 * @param librarian The librarian's name.
 * @param books A list of available books.
 * @param borrowedBooks A list of books to be borrowed.
 * @return The updated list of available books after removing the borrowed books.
 */
fun borrowBooks(librarian: String, books: MutableList<String>, borrowedBooks: List<String>): List<String> {

    println("Welcome, $librarian!")
    println("Here are the available books:")

    for (book in books) {
        println(book)
    }

    println("")

    return books - borrowedBooks
}