/**
 * This function takes a list of customers and a list of segments, and prints a marketing message for each customer in each segment
 */
fun printMarketingMessages(customers: List<String>, segments: List<String>) {

    var messagesSent = 0

    for (customer in customers) {
        for (segment in segments) {
            if (checkSegmentCriteria(customer, segment)) {
                println("Dear $customer, We have an exclusive offer for $segment!")
                messagesSent++
            }
        }
    }

    println("Total messages sent: $messagesSent")
}

fun checkSegmentCriteria(customer: String, segment: String): Boolean {
    // Implement segment criteria checking logic here
    return true // Placeholder return value
}
/**
 * This function takes a list of customers and a list of segments, and prints a marketing message for each customer in each segment
 */
fun printMarketingMessages(customers: List<String>, segments: List<String>) {
/**
 * This function takes a list of customers and a list of segments, and prints a marketing message for each customer in each segment
 */
fun printMarketingMessages(customers: List<String>, segments: List<String>) {

    var messagesSent = 0

    for (customer in customers) {
        for (segment in segments) {
            if (checkSegmentCriteria(customer, segment)) {
                println("Dear $customer, We have an exclusive offer for $segment!")
                messagesSent++
            }
        }
    }

    println("Total messages sent: $messagesSent")
}

fun checkSegmentCriteria(customer: String, segment: String): Boolean {
    // Implement segment criteria checking logic here
    return true // Placeholder return value
}