/**
 * Given an athlete's name and a dictionary of event results, find the events that the athlete has not participated in.
 *
 * @param athlete The athlete's name.
 * @param eventResults A dictionary where the keys are event names and the values are lists of athlete names who have participated in that event.
 * @return A list of event names that the athlete has not participated in.
 */
fun findUniqueEvents(athlete: String, eventResults: Map<String, List<String>>): List<String> {

    // Retrieve the list of events in which the athlete has participated
    val participatedEvents = mutableListOf<String>()
    for ((event, athletes) in eventResults) {
        if (athlete in athletes) {
            participatedEvents.add(event)
        }
    }

    // Find the complement of the participated events in the dictionary keys
    val allEvents = eventResults.keys.toList()
    val uniqueEvents = allEvents.toSet() - participatedEvents.toSet()

    return uniqueEvents.toList()
}
/**
 * Given an athlete's name and a dictionary of event results, find the events that the athlete has not participated in.
 *
 * @param athlete The athlete's name.
 * @param eventResults A dictionary where the keys are event names and the values are lists of athlete names who have participated in that event.
 * @return A list of event names that the athlete has not participated in.
 */
fun findUniqueEvents(athlete: String, eventResults: Map<String, List<String>>): List<String> {
/**
 * Given an athlete's name and a dictionary of event results, find the events that the athlete has not participated in.
 *
 * @param athlete The athlete's name.
 * @param eventResults A dictionary where the keys are event names and the values are lists of athlete names who have participated in that event.
 * @return A list of event names that the athlete has not participated in.
 */
fun findUniqueEvents(athlete: String, eventResults: Map<String, List<String>>): List<String> {

    // Retrieve the list of events in which the athlete has participated
    val participatedEvents = mutableListOf<String>()
    for ((event, athletes) in eventResults) {
        if (athlete in athletes) {
            participatedEvents.add(event)
        }
    }

    // Find the complement of the participated events in the dictionary keys
    val allEvents = eventResults.keys.toList()
    val uniqueEvents = allEvents.toSet() - participatedEvents.toSet()

    return uniqueEvents.toList()
}