/**
 * This function will help the librarian to find a specific book based on given parameters.
 *
 * @param title The title of the book.
 * @param author The author of the book.
 * @param genre The genre of the book.
 * @param availability A boolean value indicating if the book is available.
 * @return The search result, "Book found" or "Book not found".
 */
fun findBook(title: String, author: String, genre: String, availability: Boolean): String {

    if (title.isNotEmpty()) {  // If title of the book was provided
        if (author.isNotEmpty()) {  // If author of the book was provided
            if (genre.isNotEmpty()) {  // If genre of the book was provided
                if (availability) {  // If availability of the book was provided
                    if (title == "The Great Gatsby" && author == "F. Scott Fitzgerald" && genre == "Classic" && availability) {
                        return "Book found"
                    } else {
                        return "Book not found"
                    }
                } else {
                    return "Please provide the book availability"
                }
            } else {
                return "Please provide the book genre"
            }
        } else {
            return "Please provide the book author"
        }
    } else {
        return "Please provide the book title"
    }
}
/**
 * This function will help the librarian to find a specific book based on given parameters.
 *
 * @param title The title of the book.
 * @param author The author of the book.
 * @param genre The genre of the book.
 * @param availability A boolean value indicating if the book is available.
 * @return The search result, "Book found" or "Book not found".
 */
fun findBook(title: String, author: String, genre: String, availability: Boolean): String {
/**
 * This function will help the librarian to find a specific book based on given parameters.
 *
 * @param title The title of the book.
 * @param author The author of the book.
 * @param genre The genre of the book.
 * @param availability A boolean value indicating if the book is available.
 * @return The search result, "Book found" or "Book not found".
 */
fun findBook(title: String, author: String, genre: String, availability: Boolean): String {

    if (title.isNotEmpty()) {  // If title of the book was provided
        if (author.isNotEmpty()) {  // If author of the book was provided
            if (genre.isNotEmpty()) {  // If genre of the book was provided
                if (availability) {  // If availability of the book was provided
                    if (title == "The Great Gatsby" && author == "F. Scott Fitzgerald" && genre == "Classic" && availability) {
                        return "Book found"
                    } else {
                        return "Book not found"
                    }
                } else {
                    return "Please provide the book availability"
                }
            } else {
                return "Please provide the book genre"
            }
        } else {
            return "Please provide the book author"
        }
    } else {
        return "Please provide the book title"
    }
}