/**
 * This function takes two lists as inputs:
 * - books: a list of all books in the library
 * - checkedOutBooks: a list of books that are currently checked out by library patrons
 * The function should return a list of books that are available to be checked out.
 */
fun findAvailableBooks(books: List<String>, checkedOutBooks: List<String>): List<String> {

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

    // Iterate over each book in the books list
    for (book in books) {
        // Check if the current book is not in the checkedOutBooks list
        if (book !in checkedOutBooks) {
            // Append the book to the availableBooks list
            availableBooks.add(book)
        }
    }

    // Return the list of availableBooks
    return availableBooks
}
/**
 * This function takes two lists as inputs:
 * - books: a list of all books in the library
 * - checkedOutBooks: a list of books that are currently checked out by library patrons
 * The function should return a list of books that are available to be checked out.
 */
fun findAvailableBooks(books: List<String>, checkedOutBooks: List<String>): List<String> {
/**
 * This function takes two lists as inputs:
 * - books: a list of all books in the library
 * - checkedOutBooks: a list of books that are currently checked out by library patrons
 * The function should return a list of books that are available to be checked out.
 */
fun findAvailableBooks(books: List<String>, checkedOutBooks: List<String>): List<String> {

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

    // Iterate over each book in the books list
    for (book in books) {
        // Check if the current book is not in the checkedOutBooks list
        if (book !in checkedOutBooks) {
            // Append the book to the availableBooks list
            availableBooks.add(book)
        }
    }

    // Return the list of availableBooks
    return availableBooks
}