/**
 * This function checks if a specific book is available for borrowing in the library.
 *
 * @param bookTitle The title of the book to check availability.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(bookTitle: String, borrowedBooks: List<String>): Boolean {

    for (borrowedBook in borrowedBooks) {
        if (borrowedBook == bookTitle) {
            return false
        }
    }
    return true
}
/**
 * This function checks if a specific book is available for borrowing in the library.
 *
 * @param bookTitle The title of the book to check availability.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(bookTitle: String, borrowedBooks: List<String>): Boolean {
/**
 * This function checks if a specific book is available for borrowing in the library.
 *
 * @param bookTitle The title of the book to check availability.
 * @param borrowedBooks A list of books currently borrowed by patrons.
 * @return True if the book is available, False otherwise.
 */
fun isBookAvailable(bookTitle: String, borrowedBooks: List<String>): Boolean {

    for (borrowedBook in borrowedBooks) {
        if (borrowedBook == bookTitle) {
            return false
        }
    }
    return true
}