/**
 * This function takes two sets: 'books' containing the titles of all books in the library
 * and 'borrowed_books' containing the titles of books that have been borrowed.
 *
 * The function returns a set of available books that are not currently borrowed.
 *
 * Use set comprehension and looping structures to solve this exercise.
 */
fun findAvailableBooks(books: Set<String>, borrowedBooks: Set<String>): Set<String> {

    // Initialize an empty set to store available books
    val availableBooks = mutableSetOf<String>()

    // Loop through each book title in the set 'books'
    for (book in books) {
        // Check if the book title is not present in 'borrowed_books' set
        if (book !in borrowedBooks) {
            // If not borrowed, add the book title to 'availableBooks' set
            availableBooks.add(book)
        }
    }

    return availableBooks
}
/**
 * This function takes two sets: 'books' containing the titles of all books in the library
 * and 'borrowed_books' containing the titles of books that have been borrowed.
 *
 * The function returns a set of available books that are not currently borrowed.
 *
 * Use set comprehension and looping structures to solve this exercise.
 */
fun findAvailableBooks(books: Set<String>, borrowedBooks: Set<String>): Set<String> {
/**
 * This function takes two sets: 'books' containing the titles of all books in the library
 * and 'borrowed_books' containing the titles of books that have been borrowed.
 *
 * The function returns a set of available books that are not currently borrowed.
 *
 * Use set comprehension and looping structures to solve this exercise.
 */
fun findAvailableBooks(books: Set<String>, borrowedBooks: Set<String>): Set<String> {

    // Initialize an empty set to store available books
    val availableBooks = mutableSetOf<String>()

    // Loop through each book title in the set 'books'
    for (book in books) {
        // Check if the book title is not present in 'borrowed_books' set
        if (book !in borrowedBooks) {
            // If not borrowed, add the book title to 'availableBooks' set
            availableBooks.add(book)
        }
    }

    return availableBooks
}