/**
 * This function takes two lists as input:
 * - danceStyles: a list of different dance styles
 * - advantages: a list of the advantages of each dance style
 *
 * The function should return the intersection of dance styles that have all the specified advantages.
 */
fun danceStylesAndAdvantages(danceStyles: List<String>, advantages: List<String>): Set<String> {

    // Initialize an empty set to keep track of dance styles that have all the advantages
    val intersectedStyles = mutableSetOf<String>()

    // Iterate over each dance style
    for (style in danceStyles) {
        var hasAllAdvantages = true

        // Check if the current dance style has all the specified advantages
        for (advantage in advantages) {
            if (!style.contains(advantage)) {
                hasAllAdvantages = false
                break
            }
        }

        // If the dance style has all the advantages, add it to the intersectedStyles set
        if (hasAllAdvantages) {
            intersectedStyles.add(style)
        }
    }

    return intersectedStyles
}
/**
 * This function takes two lists as input:
 * - danceStyles: a list of different dance styles
 * - advantages: a list of the advantages of each dance style
 *
 * The function should return the intersection of dance styles that have all the specified advantages.
 */
fun danceStylesAndAdvantages(danceStyles: List<String>, advantages: List<String>): Set<String> {
/**
 * This function takes two lists as input:
 * - danceStyles: a list of different dance styles
 * - advantages: a list of the advantages of each dance style
 *
 * The function should return the intersection of dance styles that have all the specified advantages.
 */
fun danceStylesAndAdvantages(danceStyles: List<String>, advantages: List<String>): Set<String> {

    // Initialize an empty set to keep track of dance styles that have all the advantages
    val intersectedStyles = mutableSetOf<String>()

    // Iterate over each dance style
    for (style in danceStyles) {
        var hasAllAdvantages = true

        // Check if the current dance style has all the specified advantages
        for (advantage in advantages) {
            if (!style.contains(advantage)) {
                hasAllAdvantages = false
                break
            }
        }

        // If the dance style has all the advantages, add it to the intersectedStyles set
        if (hasAllAdvantages) {
            intersectedStyles.add(style)
        }
    }

    return intersectedStyles
}