/**
 * Given a dancer and another value, this function checks if the dancer is equal to the other value.
 */
fun whatIsATuple(dancer: Pair<String, Int>, otherValue: Any): Boolean {

    // Convert the dancer pair to a mutable list
    val dancerList = dancer.toList().toMutableList()

    // Iterate through each item in the dancer list
    for (i in dancerList.indices) {
        when (val item = dancerList[i]) {
            is String -> {
                // Perform string concatenation with the item and the dancer's name
                dancerList[i] = item + dancer.first
            }
            is Int -> {
                // Subtract the item from the dancer's age
                dancerList[i] = dancer.second - item
            }
        }
    }

    // Convert the modified dancer list back to a pair
    val modifiedDancer = dancerList[0] to dancerList[1]

    // Check if the modified dancer is equal to the other value
    return modifiedDancer == otherValue
}
/**
 * Given a dancer and another value, this function checks if the dancer is equal to the other value.
 */
fun whatIsATuple(dancer: Pair<String, Int>, otherValue: Any): Boolean {
/**
 * Given a dancer and another value, this function checks if the dancer is equal to the other value.
 */
fun whatIsATuple(dancer: Pair<String, Int>, otherValue: Any): Boolean {

    // Convert the dancer pair to a mutable list
    val dancerList = dancer.toList().toMutableList()

    // Iterate through each item in the dancer list
    for (i in dancerList.indices) {
        when (val item = dancerList[i]) {
            is String -> {
                // Perform string concatenation with the item and the dancer's name
                dancerList[i] = item + dancer.first
            }
            is Int -> {
                // Subtract the item from the dancer's age
                dancerList[i] = dancer.second - item
            }
        }
    }

    // Convert the modified dancer list back to a pair
    val modifiedDancer = dancerList[0] to dancerList[1]

    // Check if the modified dancer is equal to the other value
    return modifiedDancer == otherValue
}