/**
 * This function takes a list of all books and a list of borrowed books, and returns a list of books that are available for borrowing.
 *
 * @param books A list of all books available in the library.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return A list of books that are currently available for borrowing.
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>): List<String> {

    val availableBooks = mutableListOf<String>()

    for (book in books) {
        if (book !in borrowedBooks) {
            availableBooks.add(book)
        }
    }

    return availableBooks
}
/**
 * This function takes a list of all books and a list of borrowed books, and returns a list of books that are available for borrowing.
 *
 * @param books A list of all books available in the library.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return A list of books that are currently available for borrowing.
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>): List<String> {
/**
 * This function takes a list of all books and a list of borrowed books, and returns a list of books that are available for borrowing.
 *
 * @param books A list of all books available in the library.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return A list of books that are currently available for borrowing.
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>): List<String> {

    val availableBooks = mutableListOf<String>()

    for (book in books) {
        if (book !in borrowedBooks) {
            availableBooks.add(book)
        }
    }

    return availableBooks
}