/**
 * Given a book title and a library, find the index of the book in the library.
 */
fun findBook(bookTitle: String, library: List<String>): Int {

    var index = -1
    for ((i, book) in library.withIndex()) {
        if (book == bookTitle) {
            index = i
            break  // Exit the loop if the book is found
        }
    }
    return index
}
/**
 * Given a book title and a library, find the index of the book in the library.
 */
fun findBook(bookTitle: String, library: List<String>): Int {
/**
 * Given a book title and a library, find the index of the book in the library.
 */
fun findBook(bookTitle: String, library: List<String>): Int {

    var index = -1
    for ((i, book) in library.withIndex()) {
        if (book == bookTitle) {
            index = i
            break  // Exit the loop if the book is found
        }
    }
    return index
}