/**
 * You are a librarian who needs to add a given list of books to the library.
 * But you need to ensure that the books are not already present in the library.
 *
 * Complete the code below to add the books from the given list to the library
 * without adding any duplicate books.
 */
fun addBooksToLibrary(library: MutableSet<String>, books: List<String>): MutableSet<String> {

    for (book in books) {
        // Check if the book is already present in the library before adding it
        if (book !in library) {
            // Add the book to the library
            library.add(book)
        }
    }
    return library
}
/**
 * You are a librarian who needs to add a given list of books to the library.
 * But you need to ensure that the books are not already present in the library.
 *
 * Complete the code below to add the books from the given list to the library
 * without adding any duplicate books.
 */
fun addBooksToLibrary(library: MutableSet<String>, books: List<String>): MutableSet<String> {
/**
 * You are a librarian who needs to add a given list of books to the library.
 * But you need to ensure that the books are not already present in the library.
 *
 * Complete the code below to add the books from the given list to the library
 * without adding any duplicate books.
 */
fun addBooksToLibrary(library: MutableSet<String>, books: List<String>): MutableSet<String> {

    for (book in books) {
        // Check if the book is already present in the library before adding it
        if (book !in library) {
            // Add the book to the library
            library.add(book)
        }
    }
    return library
}