/**
 * This function takes in a marketing manager's name and a list of products.
 * It returns true if the marketing manager dislikes any product or if all products have been looped through.
 * Otherwise, it continues to the next product.
 */
fun checkProducts(marketingManager: String, products: List<String>): Boolean {

    // Initialize a variable to keep track of disliked products
    val dislikedProducts = mutableListOf<String>()

    // Iterate through each product
    for (product in products) {
        // Check if the marketing manager dislikes the current product
        if (marketingManager.isNotEmpty()) {
            // Add the disliked product to the list
            dislikedProducts.add(product)

            // Print the disliked product
            println("$marketingManager dislikes $product")

            // Check if all products have been looped through
            if (dislikedProducts.size == products.size) {
                return true
            }
        } else {
            // Continue to the next product
            continue
        }
    }

    return false
}
/**
 * This function takes in a marketing manager's name and a list of products.
 * It returns true if the marketing manager dislikes any product or if all products have been looped through.
 * Otherwise, it continues to the next product.
 */
fun checkProducts(marketingManager: String, products: List<String>): Boolean {
/**
 * This function takes in a marketing manager's name and a list of products.
 * It returns true if the marketing manager dislikes any product or if all products have been looped through.
 * Otherwise, it continues to the next product.
 */
fun checkProducts(marketingManager: String, products: List<String>): Boolean {

    // Initialize a variable to keep track of disliked products
    val dislikedProducts = mutableListOf<String>()

    // Iterate through each product
    for (product in products) {
        // Check if the marketing manager dislikes the current product
        if (marketingManager.isNotEmpty()) {
            // Add the disliked product to the list
            dislikedProducts.add(product)

            // Print the disliked product
            println("$marketingManager dislikes $product")

            // Check if all products have been looped through
            if (dislikedProducts.size == products.size) {
                return true
            }
        } else {
            // Continue to the next product
            continue
        }
    }

    return false
}