/**
 * Given a nested list of locations, return the artifacts found at the intersection of latitude 40.7128 and longitude -74.0060.
 */
fun findArtifacts(locations: List<List<Map<String, Any>>>) : List<Any> {

    val artifacts = mutableListOf<Any>()
    for (latitudes in locations) {
        for (location in latitudes) {
            if (location["latitude"] == 40.7128 && location["longitude"] == -74.006) {
                artifacts.addAll(location["artifacts"] as List<Any>)
            }
        }
    }
    return artifacts
}
/**
 * Given a nested list of locations, return the artifacts found at the intersection of latitude 40.7128 and longitude -74.0060.
 */
fun findArtifacts(locations: List<List<Map<String, Any>>>) : List<Any> {
/**
 * Given a nested list of locations, return the artifacts found at the intersection of latitude 40.7128 and longitude -74.0060.
 */
fun findArtifacts(locations: List<List<Map<String, Any>>>) : List<Any> {

    val artifacts = mutableListOf<Any>()
    for (latitudes in locations) {
        for (location in latitudes) {
            if (location["latitude"] == 40.7128 && location["longitude"] == -74.006) {
                artifacts.addAll(location["artifacts"] as List<Any>)
            }
        }
    }
    return artifacts
}