/**
 * Given a library, this function returns a list of books where the count is not equal to zero.
 *
 * @param library A map representing the library containing book titles as keys and the count of each book as values.
 * @return A list of book titles where the count is not equal to zero.
 */
fun findBooksWithCountNotEqualToZero(library: Map<String, Int>): List<String> {

    val booksWithNonZeroCount = mutableListOf<String>()

    for ((book, count) in library) {
        // Check if the count is not equal to zero
        if (count != 0) {
            booksWithNonZeroCount.add(book)
        }
    }

    return booksWithNonZeroCount
}

// Example usage
/**
 * Given a library, this function returns a list of books where the count is not equal to zero.
 *
 * @param library A map representing the library containing book titles as keys and the count of each book as values.
 * @return A list of book titles where the count is not equal to zero.
 */
fun findBooksWithCountNotEqualToZero(library: Map<String, Int>): List<String> {
/**
 * Given a library, this function returns a list of books where the count is not equal to zero.
 *
 * @param library A map representing the library containing book titles as keys and the count of each book as values.
 * @return A list of book titles where the count is not equal to zero.
 */
fun findBooksWithCountNotEqualToZero(library: Map<String, Int>): List<String> {

    val booksWithNonZeroCount = mutableListOf<String>()

    for ((book, count) in library) {
        // Check if the count is not equal to zero
        if (count != 0) {
            booksWithNonZeroCount.add(book)
        }
    }

    return booksWithNonZeroCount
}

// Example usage