/**
 * Given a list of pairs representing dancers, remove any duplicate dancers based on their name and age.
 *
 * @param dancers A list of pairs where each pair represents a dancer and contains their name and age.
 * @return A list of unique dancers after removing any duplicates.
 */
fun removeDancerDuplicates(dancers: List<Pair<String, Int>>): List<Pair<String, Int>> {

    // Create a set to store unique dancers
    val uniqueDancers = mutableSetOf<Pair<String, Int>>()

    // Iterate over the dancers list
    for (dancer in dancers) {
        val (name, age) = dancer

        // Check if the dancer already exists in the set
        if (dancer !in uniqueDancers) {
            uniqueDancers.add(dancer)
        }
    }

    // Convert the set back to a list
    return uniqueDancers.toList()
}
/**
 * Given a list of pairs representing dancers, remove any duplicate dancers based on their name and age.
 *
 * @param dancers A list of pairs where each pair represents a dancer and contains their name and age.
 * @return A list of unique dancers after removing any duplicates.
 */
fun removeDancerDuplicates(dancers: List<Pair<String, Int>>): List<Pair<String, Int>> {
/**
 * Given a list of pairs representing dancers, remove any duplicate dancers based on their name and age.
 *
 * @param dancers A list of pairs where each pair represents a dancer and contains their name and age.
 * @return A list of unique dancers after removing any duplicates.
 */
fun removeDancerDuplicates(dancers: List<Pair<String, Int>>): List<Pair<String, Int>> {

    // Create a set to store unique dancers
    val uniqueDancers = mutableSetOf<Pair<String, Int>>()

    // Iterate over the dancers list
    for (dancer in dancers) {
        val (name, age) = dancer

        // Check if the dancer already exists in the set
        if (dancer !in uniqueDancers) {
            uniqueDancers.add(dancer)
        }
    }

    // Convert the set back to a list
    return uniqueDancers.toList()
}