/**
 * Calculate the intersection of dance moves between two dancers.
 *
 * @param dancer1 A list representing dancer1's dance moves
 * @param dancer2 A list representing dancer2's dance moves
 * @return A list representing the intersection of dance moves between dancer1 and dancer2
 */
fun danceMoves(dancer1: List<String>, dancer2: List<String>): List<String> {

    val intersection = mutableListOf<String>()
    for (move in dancer1) {
        if (move in dancer2 && move !in intersection) {
            intersection.add(move)
        }
    }
    return intersection
}
/**
 * Calculate the intersection of dance moves between two dancers.
 *
 * @param dancer1 A list representing dancer1's dance moves
 * @param dancer2 A list representing dancer2's dance moves
 * @return A list representing the intersection of dance moves between dancer1 and dancer2
 */
fun danceMoves(dancer1: List<String>, dancer2: List<String>): List<String> {
/**
 * Calculate the intersection of dance moves between two dancers.
 *
 * @param dancer1 A list representing dancer1's dance moves
 * @param dancer2 A list representing dancer2's dance moves
 * @return A list representing the intersection of dance moves between dancer1 and dancer2
 */
fun danceMoves(dancer1: List<String>, dancer2: List<String>): List<String> {

    val intersection = mutableListOf<String>()
    for (move in dancer1) {
        if (move in dancer2 && move !in intersection) {
            intersection.add(move)
        }
    }
    return intersection
}