/**
 * Given a list of dancers, remove any duplicate dancers and return the updated list.
 * The dancers are represented as tuples with two elements: name (string) and age (integer).
 */
fun removeDuplicates(dancers: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {

    var i = 0

    while (i < dancers.size) {
        var j = i + 1

        while (j < dancers.size) {
            if (dancers[i] == dancers[j]) {
                dancers.removeAt(j)
            } else {
                j++
            }
        }

        i++
    }

    return dancers
}
/**
 * Given a list of dancers, remove any duplicate dancers and return the updated list.
 * The dancers are represented as tuples with two elements: name (string) and age (integer).
 */
fun removeDuplicates(dancers: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {
/**
 * Given a list of dancers, remove any duplicate dancers and return the updated list.
 * The dancers are represented as tuples with two elements: name (string) and age (integer).
 */
fun removeDuplicates(dancers: MutableList<Pair<String, Int>>): MutableList<Pair<String, Int>> {

    var i = 0

    while (i < dancers.size) {
        var j = i + 1

        while (j < dancers.size) {
            if (dancers[i] == dancers[j]) {
                dancers.removeAt(j)
            } else {
                j++
            }
        }

        i++
    }

    return dancers
}