/**
 * Given two athletes, this function compares their attributes and returns the result.
 *
 * @param athlete1 A list representing the attributes of the first athlete.
 * @param athlete2 A list representing the attributes of the second athlete.
 * @return A string indicating the comparison result.
 */
fun compareAthletes(athlete1: List<Any>, athlete2: List<Any>): String {

    // Check if the lists have the same number of elements
    if (athlete1.size != athlete2.size) {
        return "Invalid comparison: Athletes have different number of attributes"
    }

    // Compare the attributes element by element
    for ((index, attr1) in athlete1.withIndex()) {
        val attr2 = athlete2[index]
        if (attr1 != attr2) {
            return "Invalid comparison: Athletes have different attributes"
        }
    }

    // If all attributes are equal, return a positive result
    return "The two athletes are equal in all attributes"
}
/**
 * Given two athletes, this function compares their attributes and returns the result.
 *
 * @param athlete1 A list representing the attributes of the first athlete.
 * @param athlete2 A list representing the attributes of the second athlete.
 * @return A string indicating the comparison result.
 */
fun compareAthletes(athlete1: List<Any>, athlete2: List<Any>): String {
/**
 * Given two athletes, this function compares their attributes and returns the result.
 *
 * @param athlete1 A list representing the attributes of the first athlete.
 * @param athlete2 A list representing the attributes of the second athlete.
 * @return A string indicating the comparison result.
 */
fun compareAthletes(athlete1: List<Any>, athlete2: List<Any>): String {

    // Check if the lists have the same number of elements
    if (athlete1.size != athlete2.size) {
        return "Invalid comparison: Athletes have different number of attributes"
    }

    // Compare the attributes element by element
    for ((index, attr1) in athlete1.withIndex()) {
        val attr2 = athlete2[index]
        if (attr1 != attr2) {
            return "Invalid comparison: Athletes have different attributes"
        }
    }

    // If all attributes are equal, return a positive result
    return "The two athletes are equal in all attributes"
}