/**
 * An archaeologist named [archaeologistName] wants to find artifacts in a list of excavation sites.
 * Each excavation site is represented as a pair containing the name of the site and the number of artifacts found.
 *
 * Your task is to implement a function that returns a list containing the names of the excavation sites from which
 * the archaeologist was able to find artifacts.
 *
 * Example:
 * archaeologistName = "Dr. Indiana Jones"
 * sites = listOf(Pair("Ancient Temple", 0), Pair("Buried City", 5), Pair("Cave Ruins", 0), Pair("Lost Civilization", 3))
 *
 * findArtifacts(archaeologistName, sites) -> listOf("Buried City", "Lost Civilization")
 *
 * Note: In the above example, the archaeologist was able to find artifacts only at the "Buried City" and "Lost Civilization" sites.
 */
fun findArtifacts(archaeologistName: String, sites: List<Pair<String, Int>>): List<String> {

    return sites.filter { it.second > 0 }.map { it.first }
}
/**
 * An archaeologist named [archaeologistName] wants to find artifacts in a list of excavation sites.
 * Each excavation site is represented as a pair containing the name of the site and the number of artifacts found.
 *
 * Your task is to implement a function that returns a list containing the names of the excavation sites from which
 * the archaeologist was able to find artifacts.
 *
 * Example:
 * archaeologistName = "Dr. Indiana Jones"
 * sites = listOf(Pair("Ancient Temple", 0), Pair("Buried City", 5), Pair("Cave Ruins", 0), Pair("Lost Civilization", 3))
 *
 * findArtifacts(archaeologistName, sites) -> listOf("Buried City", "Lost Civilization")
 *
 * Note: In the above example, the archaeologist was able to find artifacts only at the "Buried City" and "Lost Civilization" sites.
 */
fun findArtifacts(archaeologistName: String, sites: List<Pair<String, Int>>): List<String> {
/**
 * An archaeologist named [archaeologistName] wants to find artifacts in a list of excavation sites.
 * Each excavation site is represented as a pair containing the name of the site and the number of artifacts found.
 *
 * Your task is to implement a function that returns a list containing the names of the excavation sites from which
 * the archaeologist was able to find artifacts.
 *
 * Example:
 * archaeologistName = "Dr. Indiana Jones"
 * sites = listOf(Pair("Ancient Temple", 0), Pair("Buried City", 5), Pair("Cave Ruins", 0), Pair("Lost Civilization", 3))
 *
 * findArtifacts(archaeologistName, sites) -> listOf("Buried City", "Lost Civilization")
 *
 * Note: In the above example, the archaeologist was able to find artifacts only at the "Buried City" and "Lost Civilization" sites.
 */
fun findArtifacts(archaeologistName: String, sites: List<Pair<String, Int>>): List<String> {

    return sites.filter { it.second > 0 }.map { it.first }
}