/**
 * This function compares two layers of rock strata to determine if they are equal, nested, or neither.
 * The function takes two parameters - stratum1 and stratum2, which represent the two layers to be compared.
 * It returns a string indicating the relationship between the layers.
 */
fun compareStratigraphy(stratum1: String, stratum2: String): String {

    // Check if the two layers are equal
    if (stratum1 == stratum2) {
        return "The rock strata are equal."
    }

    // Check if one stratum is nested within the other
    if (stratum1 in stratum2 || stratum2 in stratum1) {
        return "The rock strata are nested."
    }

    // Check if there is no intersection or nesting between the two layers
    return "The rock strata are neither equal nor nested."
}
/**
 * This function compares two layers of rock strata to determine if they are equal, nested, or neither.
 * The function takes two parameters - stratum1 and stratum2, which represent the two layers to be compared.
 * It returns a string indicating the relationship between the layers.
 */
fun compareStratigraphy(stratum1: String, stratum2: String): String {
/**
 * This function compares two layers of rock strata to determine if they are equal, nested, or neither.
 * The function takes two parameters - stratum1 and stratum2, which represent the two layers to be compared.
 * It returns a string indicating the relationship between the layers.
 */
fun compareStratigraphy(stratum1: String, stratum2: String): String {

    // Check if the two layers are equal
    if (stratum1 == stratum2) {
        return "The rock strata are equal."
    }

    // Check if one stratum is nested within the other
    if (stratum1 in stratum2 || stratum2 in stratum1) {
        return "The rock strata are nested."
    }

    // Check if there is no intersection or nesting between the two layers
    return "The rock strata are neither equal nor nested."
}