/**
 * Given a list of books and a book title, the function checks whether the book is currently available for borrowing
 * or not and returns the status.
 *
 * @param books A list of books in the library.
 * @param bookTitle The title of the book to check.
 * @return The status of the book - "Available" if the book is available, "Borrowed" if the book is currently
 * borrowed, and "Not Found" if the book title is not present in the library.
 */
fun checkBookStatus(books: List<String>, bookTitle: String): String {

    var count = 0
    for (book in books) {
        if (book == bookTitle) {
            if (count < 5) {
                return "Available"
            } else {
                return "Borrowed"
            }
        }
        count++
    }
    return "Not Found"
}
/**
 * Given a list of books and a book title, the function checks whether the book is currently available for borrowing
 * or not and returns the status.
 *
 * @param books A list of books in the library.
 * @param bookTitle The title of the book to check.
 * @return The status of the book - "Available" if the book is available, "Borrowed" if the book is currently
 * borrowed, and "Not Found" if the book title is not present in the library.
 */
fun checkBookStatus(books: List<String>, bookTitle: String): String {
/**
 * Given a list of books and a book title, the function checks whether the book is currently available for borrowing
 * or not and returns the status.
 *
 * @param books A list of books in the library.
 * @param bookTitle The title of the book to check.
 * @return The status of the book - "Available" if the book is available, "Borrowed" if the book is currently
 * borrowed, and "Not Found" if the book title is not present in the library.
 */
fun checkBookStatus(books: List<String>, bookTitle: String): String {

    var count = 0
    for (book in books) {
        if (book == bookTitle) {
            if (count < 5) {
                return "Available"
            } else {
                return "Borrowed"
            }
        }
        count++
    }
    return "Not Found"
}