/**
 * Concatenates two athlete tuples and removes elements that are equal in both tuples.
 *
 * @param athleteOne First athlete tuple
 * @param athleteTwo Second athlete tuple
 * @return Tuple formed by concatenating both input tuples and removing equal elements
 */
fun concatRepeatNotEqual(athleteOne: List<Any>, athleteTwo: List<Any>): List<Any> {

    // Concatenate both tuples
    val combinedList = athleteOne + athleteTwo

    // Find the elements that appear more than once
    val repeatedElements = combinedList.filter { item -> combinedList.count { it == item } > 1 }.distinct()

    // Remove the repeated elements
    val uniqueList = combinedList.filter { item -> item !in repeatedElements }

    return uniqueList
}

// Exercise usage example
val athlete1 = listOf("Usain", "Bolt", 31, "Male", "100m")
val athlete2 = listOf("Michael", "Phelps", 33, "Male", "Swimming")
val athlete3 = listOf("Simone", "Biles", 21, "Female", "Gymnastics")
val athlete4 = listOf("Usain", "Bolt", 31, "Male", "100m")

val result = concatRepeatNotEqual(athlete1, athlete4)
/**
 * Concatenates two athlete tuples and removes elements that are equal in both tuples.
 *
 * @param athleteOne First athlete tuple
 * @param athleteTwo Second athlete tuple
 * @return Tuple formed by concatenating both input tuples and removing equal elements
 */
fun concatRepeatNotEqual(athleteOne: List<Any>, athleteTwo: List<Any>): List<Any> {
/**
 * Concatenates two athlete tuples and removes elements that are equal in both tuples.
 *
 * @param athleteOne First athlete tuple
 * @param athleteTwo Second athlete tuple
 * @return Tuple formed by concatenating both input tuples and removing equal elements
 */
fun concatRepeatNotEqual(athleteOne: List<Any>, athleteTwo: List<Any>): List<Any> {

    // Concatenate both tuples
    val combinedList = athleteOne + athleteTwo

    // Find the elements that appear more than once
    val repeatedElements = combinedList.filter { item -> combinedList.count { it == item } > 1 }.distinct()

    // Remove the repeated elements
    val uniqueList = combinedList.filter { item -> item !in repeatedElements }

    return uniqueList
}

// Exercise usage example
val athlete1 = listOf("Usain", "Bolt", 31, "Male", "100m")
val athlete2 = listOf("Michael", "Phelps", 33, "Male", "Swimming")
val athlete3 = listOf("Simone", "Biles", 21, "Female", "Gymnastics")
val athlete4 = listOf("Usain", "Bolt", 31, "Male", "100m")

val result = concatRepeatNotEqual(athlete1, athlete4)