/**
 * Compares two rock layers and returns whether they are identical or not.
 *
 * @param rockLayer1 The first rock layer
 * @param rockLayer2 The second rock layer
 * @return True if the rock layers are identical, False otherwise.
 *
 * Example:
 * val rockLayer1 = listOf("sandstone", "shale", "marble")
 * val rockLayer2 = listOf("sandstone", "shale", "marble")
 * compareRockLayers(rockLayer1, rockLayer2)
 * Output: true
 */
fun compareRockLayers(rockLayer1: List<String>, rockLayer2: List<String>): Boolean {

    if (rockLayer1.size == rockLayer2.size) {
        for (i in rockLayer1.indices) {
            if (rockLayer1[i] != rockLayer2[i]) {
                return false
            }
        }
        return true
    } else {
        return false
    }
}
/**
 * Compares two rock layers and returns whether they are identical or not.
 *
 * @param rockLayer1 The first rock layer
 * @param rockLayer2 The second rock layer
 * @return True if the rock layers are identical, False otherwise.
 *
 * Example:
 * val rockLayer1 = listOf("sandstone", "shale", "marble")
 * val rockLayer2 = listOf("sandstone", "shale", "marble")
 * compareRockLayers(rockLayer1, rockLayer2)
 * Output: true
 */
fun compareRockLayers(rockLayer1: List<String>, rockLayer2: List<String>): Boolean {
/**
 * Compares two rock layers and returns whether they are identical or not.
 *
 * @param rockLayer1 The first rock layer
 * @param rockLayer2 The second rock layer
 * @return True if the rock layers are identical, False otherwise.
 *
 * Example:
 * val rockLayer1 = listOf("sandstone", "shale", "marble")
 * val rockLayer2 = listOf("sandstone", "shale", "marble")
 * compareRockLayers(rockLayer1, rockLayer2)
 * Output: true
 */
fun compareRockLayers(rockLayer1: List<String>, rockLayer2: List<String>): Boolean {

    if (rockLayer1.size == rockLayer2.size) {
        for (i in rockLayer1.indices) {
            if (rockLayer1[i] != rockLayer2[i]) {
                return false
            }
        }
        return true
    } else {
        return false
    }
}