/**
 * This function takes two arguments - category and sport. It returns the list of athletes who are either in the specified category or participate in the specified sport.
 */
fun findAthlete(category: String, sport: String): List<String> {

    val athletes = listOf(
        mapOf("name" to "John Doe", "category" to "A", "sport" to "Football"),
        mapOf("name" to "Jane Smith", "category" to "B", "sport" to "Basketball"),
        mapOf("name" to "Mike Johnson", "category" to "B", "sport" to "Football"),
        mapOf("name" to "Lisa Williams", "category" to "C", "sport" to "Tennis"),
        mapOf("name" to "David Brown", "category" to "A", "sport" to "Basketball"),
        mapOf("name" to "Sarah Wilson", "category" to "C", "sport" to "Football")
    )

    val selectedAthletes = mutableListOf<String>()

    // Find athletes who are either in the specified category or participate in the specified sport
    for (athlete in athletes) {
        if (athlete["category"] == category || athlete["sport"] == sport) {
            selectedAthletes.add(athlete["name"] as String)
        }
    }

    return selectedAthletes
}
/**
 * This function takes two arguments - category and sport. It returns the list of athletes who are either in the specified category or participate in the specified sport.
 */
fun findAthlete(category: String, sport: String): List<String> {
/**
 * This function takes two arguments - category and sport. It returns the list of athletes who are either in the specified category or participate in the specified sport.
 */
fun findAthlete(category: String, sport: String): List<String> {

    val athletes = listOf(
        mapOf("name" to "John Doe", "category" to "A", "sport" to "Football"),
        mapOf("name" to "Jane Smith", "category" to "B", "sport" to "Basketball"),
        mapOf("name" to "Mike Johnson", "category" to "B", "sport" to "Football"),
        mapOf("name" to "Lisa Williams", "category" to "C", "sport" to "Tennis"),
        mapOf("name" to "David Brown", "category" to "A", "sport" to "Basketball"),
        mapOf("name" to "Sarah Wilson", "category" to "C", "sport" to "Football")
    )

    val selectedAthletes = mutableListOf<String>()

    // Find athletes who are either in the specified category or participate in the specified sport
    for (athlete in athletes) {
        if (athlete["category"] == category || athlete["sport"] == sport) {
            selectedAthletes.add(athlete["name"] as String)
        }
    }

    return selectedAthletes
}