/**
 * This function takes three lists as input: authors, books, and borrowed_books.
 * It removes the books borrowed from the library's collection and returns the updated list of books.
 *
 * @param authors List of authors' names.
 * @param books List of book titles.
 * @param borrowedBooks List of books borrowed from the library.
 * @return Updated list of book titles after removing the borrowed books.
 */
fun removeBooks(authors: List<String>, books: MutableList<String>, borrowedBooks: List<String>): List<String> {

    // Use filter to remove the borrowed books from the library's collection
    books.removeAll(borrowedBooks)
    return books
}
/**
 * This function takes three lists as input: authors, books, and borrowed_books.
 * It removes the books borrowed from the library's collection and returns the updated list of books.
 *
 * @param authors List of authors' names.
 * @param books List of book titles.
 * @param borrowedBooks List of books borrowed from the library.
 * @return Updated list of book titles after removing the borrowed books.
 */
fun removeBooks(authors: List<String>, books: MutableList<String>, borrowedBooks: List<String>): List<String> {
/**
 * This function takes three lists as input: authors, books, and borrowed_books.
 * It removes the books borrowed from the library's collection and returns the updated list of books.
 *
 * @param authors List of authors' names.
 * @param books List of book titles.
 * @param borrowedBooks List of books borrowed from the library.
 * @return Updated list of book titles after removing the borrowed books.
 */
fun removeBooks(authors: List<String>, books: MutableList<String>, borrowedBooks: List<String>): List<String> {

    // Use filter to remove the borrowed books from the library's collection
    books.removeAll(borrowedBooks)
    return books
}