/**
 * This function takes the name of an archaeologist and the excavation site as arguments.
 * It then simulates an archaeological survey and searches for a specific artifact at the site.
 * The function returns a string indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, excavationSite: List<List<List<String>>>): String {

    // Simulating the survey and searching for artifact
    for (layer in excavationSite) {  // Iterating through each layer of the excavation site
        for (row in layer) {  // Iterating through each row in the layer
            for (column in row) {  // Iterating through each column in the row
                if (column == "artifact") {
                    println("Congratulations $archaeologistName, you found the precious artifact!")
                    return "Artifact Found"
                } else {
                    println("Moving to the next column...")
                }
            }
        }
    }

    println("The entire excavation site has been surveyed but the artifact was not found.")
    return "Artifact Not Found"
}
/**
 * This function takes the name of an archaeologist and the excavation site as arguments.
 * It then simulates an archaeological survey and searches for a specific artifact at the site.
 * The function returns a string indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, excavationSite: List<List<List<String>>>): String {
/**
 * This function takes the name of an archaeologist and the excavation site as arguments.
 * It then simulates an archaeological survey and searches for a specific artifact at the site.
 * The function returns a string indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, excavationSite: List<List<List<String>>>): String {

    // Simulating the survey and searching for artifact
    for (layer in excavationSite) {  // Iterating through each layer of the excavation site
        for (row in layer) {  // Iterating through each row in the layer
            for (column in row) {  // Iterating through each column in the row
                if (column == "artifact") {
                    println("Congratulations $archaeologistName, you found the precious artifact!")
                    return "Artifact Found"
                } else {
                    println("Moving to the next column...")
                }
            }
        }
    }

    println("The entire excavation site has been surveyed but the artifact was not found.")
    return "Artifact Not Found"
}