/**
 * A librarian wants to search for a book in the library. Complete the code by using conditional statements and the
 * 'continue' keyword to find the given book title.
 *
 * @param library A list of book titles available in the library.
 * @param bookTitle The title of the book to search for.
 * @return True if the book is found, False otherwise.
 */
fun searchBooks(library: List<String>, bookTitle: String): Boolean {

    var found = false

    for (title in library) {
        if (title.length != bookTitle.length) {
            continue
        }

        for (i in title.indices) {
            if (title[i] != bookTitle[i]) {
                continue
            }

            if (i == title.length - 1) {
                found = true
                break
            }
        }
    }

    return found
}
/**
 * A librarian wants to search for a book in the library. Complete the code by using conditional statements and the
 * 'continue' keyword to find the given book title.
 *
 * @param library A list of book titles available in the library.
 * @param bookTitle The title of the book to search for.
 * @return True if the book is found, False otherwise.
 */
fun searchBooks(library: List<String>, bookTitle: String): Boolean {
/**
 * A librarian wants to search for a book in the library. Complete the code by using conditional statements and the
 * 'continue' keyword to find the given book title.
 *
 * @param library A list of book titles available in the library.
 * @param bookTitle The title of the book to search for.
 * @return True if the book is found, False otherwise.
 */
fun searchBooks(library: List<String>, bookTitle: String): Boolean {

    var found = false

    for (title in library) {
        if (title.length != bookTitle.length) {
            continue
        }

        for (i in title.indices) {
            if (title[i] != bookTitle[i]) {
                continue
            }

            if (i == title.length - 1) {
                found = true
                break
            }
        }
    }

    return found
}