/**
 * This function takes a library, shelf number, and a book title as arguments and checks if the book is available on the specific shelf.
 * It returns true if the book is available, otherwise false.
 */
fun isBookAvailable(library: List<List<String>>, shelfNumber: Int, bookTitle: String): Boolean {

    if (shelfNumber >= library.size || shelfNumber < 0) {
        return false
    }

    val shelf = library[shelfNumber]
    // Add logic to check if the bookTitle is available on the shelf
    return shelf.contains(bookTitle)
}
/**
 * This function takes a library, shelf number, and a book title as arguments and checks if the book is available on the specific shelf.
 * It returns true if the book is available, otherwise false.
 */
fun isBookAvailable(library: List<List<String>>, shelfNumber: Int, bookTitle: String): Boolean {
/**
 * This function takes a library, shelf number, and a book title as arguments and checks if the book is available on the specific shelf.
 * It returns true if the book is available, otherwise false.
 */
fun isBookAvailable(library: List<List<String>>, shelfNumber: Int, bookTitle: String): Boolean {

    if (shelfNumber >= library.size || shelfNumber < 0) {
        return false
    }

    val shelf = library[shelfNumber]
    // Add logic to check if the bookTitle is available on the shelf
    return shelf.contains(bookTitle)
}