/**
 * This function takes in two athletes' sets of skills and returns a new set consisting of
 * the common skills they both possess.
 */
fun findCommonElements(athlete1: Set<String>, athlete2: Set<String>): Set<String> {

    val commonSkills = mutableSetOf<String>()

    // Iterate over each skill in athlete1's set
    for (skill in athlete1) {
        // Check if the skill is present in athlete2's set
        if (skill in athlete2) {
            // Add the skill to the commonSkills set
            commonSkills.add(skill)
        }
    }

    // Return the set of common skills
    return commonSkills
}
/**
 * This function takes in two athletes' sets of skills and returns a new set consisting of
 * the common skills they both possess.
 */
fun findCommonElements(athlete1: Set<String>, athlete2: Set<String>): Set<String> {
/**
 * This function takes in two athletes' sets of skills and returns a new set consisting of
 * the common skills they both possess.
 */
fun findCommonElements(athlete1: Set<String>, athlete2: Set<String>): Set<String> {

    val commonSkills = mutableSetOf<String>()

    // Iterate over each skill in athlete1's set
    for (skill in athlete1) {
        // Check if the skill is present in athlete2's set
        if (skill in athlete2) {
            // Add the skill to the commonSkills set
            commonSkills.add(skill)
        }
    }

    // Return the set of common skills
    return commonSkills
}