/**
 * You are a librarian trying to find the available books in your library.
 * The library has a list of all books, a list of borrowed books, and a list of books that are currently overdue.
 * You need to create a function that returns a list of books that are available for borrowing.
 * The available books are the ones that are in the library but not borrowed or overdue.
 * For this exercise, assume that the books, borrowedBooks, and overdueBooks are all lists of book titles.
 *
 * @param books a list of all the books in the library
 * @param borrowedBooks a list of books that are currently borrowed
 * @param overdueBooks a list of books that are currently overdue
 * @return availableBooks a list of books that are available for borrowing
 *
 * Example:
 * Available books: ['Book1', 'Book4', 'Book5']
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>, overdueBooks: List<String>): List<String> {

    val availableBooks = mutableListOf<String>()

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

    return availableBooks
}
/**
 * You are a librarian trying to find the available books in your library.
 * The library has a list of all books, a list of borrowed books, and a list of books that are currently overdue.
 * You need to create a function that returns a list of books that are available for borrowing.
 * The available books are the ones that are in the library but not borrowed or overdue.
 * For this exercise, assume that the books, borrowedBooks, and overdueBooks are all lists of book titles.
 *
 * @param books a list of all the books in the library
 * @param borrowedBooks a list of books that are currently borrowed
 * @param overdueBooks a list of books that are currently overdue
 * @return availableBooks a list of books that are available for borrowing
 *
 * Example:
 * Available books: ['Book1', 'Book4', 'Book5']
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>, overdueBooks: List<String>): List<String> {
/**
 * You are a librarian trying to find the available books in your library.
 * The library has a list of all books, a list of borrowed books, and a list of books that are currently overdue.
 * You need to create a function that returns a list of books that are available for borrowing.
 * The available books are the ones that are in the library but not borrowed or overdue.
 * For this exercise, assume that the books, borrowedBooks, and overdueBooks are all lists of book titles.
 *
 * @param books a list of all the books in the library
 * @param borrowedBooks a list of books that are currently borrowed
 * @param overdueBooks a list of books that are currently overdue
 * @return availableBooks a list of books that are available for borrowing
 *
 * Example:
 * Available books: ['Book1', 'Book4', 'Book5']
 */
fun findAvailableBooks(books: List<String>, borrowedBooks: List<String>, overdueBooks: List<String>): List<String> {

    val availableBooks = mutableListOf<String>()

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

    return availableBooks
}