/**
 * This exercise aims to test your understanding of creating a tuple and using conditional statements.
 * Your task is to create a tuple with the given information and then use conditional statements to check if the anthropologist
 * meets certain criteria based on their age and profession.
 *
 * @param name The name of the anthropologist.
 * @param age The age of the anthropologist.
 * @param profession The profession of the anthropologist.
 * @param country The country where the anthropologist works.
 * @return A message indicating whether the anthropologist meets the criteria or not.
 */
fun findAnthropologist(name: String, age: Int, profession: String, country: String): String {

    // Create a tuple with the given information
    val anthropologist = Triple(name, age, profession)

    // Check the age and profession of the anthropologist using conditional statements
    return when {
        age < 25 && profession.toLowerCase() == "anthropology" -> "$name is a young anthropologist!"
        age < 25 -> "$name is a young professional in $profession."
        age in 25..40 && profession.toLowerCase() == "archaeology" -> "$name is an archaeologist in their prime."
        age in 25..40 -> "$name is a professional in $profession."
        else -> "$name is an experienced professional in $profession."
    }
}
/**
 * This exercise aims to test your understanding of creating a tuple and using conditional statements.
 * Your task is to create a tuple with the given information and then use conditional statements to check if the anthropologist
 * meets certain criteria based on their age and profession.
 *
 * @param name The name of the anthropologist.
 * @param age The age of the anthropologist.
 * @param profession The profession of the anthropologist.
 * @param country The country where the anthropologist works.
 * @return A message indicating whether the anthropologist meets the criteria or not.
 */
fun findAnthropologist(name: String, age: Int, profession: String, country: String): String {
/**
 * This exercise aims to test your understanding of creating a tuple and using conditional statements.
 * Your task is to create a tuple with the given information and then use conditional statements to check if the anthropologist
 * meets certain criteria based on their age and profession.
 *
 * @param name The name of the anthropologist.
 * @param age The age of the anthropologist.
 * @param profession The profession of the anthropologist.
 * @param country The country where the anthropologist works.
 * @return A message indicating whether the anthropologist meets the criteria or not.
 */
fun findAnthropologist(name: String, age: Int, profession: String, country: String): String {

    // Create a tuple with the given information
    val anthropologist = Triple(name, age, profession)

    // Check the age and profession of the anthropologist using conditional statements
    return when {
        age < 25 && profession.toLowerCase() == "anthropology" -> "$name is a young anthropologist!"
        age < 25 -> "$name is a young professional in $profession."
        age in 25..40 && profession.toLowerCase() == "archaeology" -> "$name is an archaeologist in their prime."
        age in 25..40 -> "$name is a professional in $profession."
        else -> "$name is an experienced professional in $profession."
    }
}