/**
 * This function generates personalized marketing emails by combining different subjects, names, and details.
 *
 * @param subjects a list of subjects for the emails
 * @param names a list of recipient names
 * @param details a list of specific details to be included in the emails
 * @return a list of generated marketing emails
 */
fun generateMarketingEmails(subjects: List<String>, names: List<String>, details: List<String>): List<String> {

    val emails = mutableListOf<String>()

    for (subject in subjects) {
        for (name in names) {
            for (detail in details) {
                var email = "Subject: $subject\n\n"
                email += "Dear $name,\n\n"
                email += "We would like to present you our latest offers. $detail.\n\n"
                email += "Best regards,\n\nYour Marketing Team"
                emails.add(email)
            }
        }
    }

    return emails
}
/**
 * This function generates personalized marketing emails by combining different subjects, names, and details.
 *
 * @param subjects a list of subjects for the emails
 * @param names a list of recipient names
 * @param details a list of specific details to be included in the emails
 * @return a list of generated marketing emails
 */
fun generateMarketingEmails(subjects: List<String>, names: List<String>, details: List<String>): List<String> {
/**
 * This function generates personalized marketing emails by combining different subjects, names, and details.
 *
 * @param subjects a list of subjects for the emails
 * @param names a list of recipient names
 * @param details a list of specific details to be included in the emails
 * @return a list of generated marketing emails
 */
fun generateMarketingEmails(subjects: List<String>, names: List<String>, details: List<String>): List<String> {

    val emails = mutableListOf<String>()

    for (subject in subjects) {
        for (name in names) {
            for (detail in details) {
                var email = "Subject: $subject\n\n"
                email += "Dear $name,\n\n"
                email += "We would like to present you our latest offers. $detail.\n\n"
                email += "Best regards,\n\nYour Marketing Team"
                emails.add(email)
            }
        }
    }

    return emails
}