/**
 * A geologist wants to remove any rock samples that contain veins in a given list.
 * Complete the code to remove the rock samples that have veins and return the modified list.
 *
 * @param rockSamples A list of rock samples, where each sample is represented by a string.
 * @return The modified list of rock samples without any samples containing veins.
 *
 * Example:
 * removeVeins(listOf("Granite", "Limestone", "Gneiss", "Marble with veins", "Basalt"))
 * Output: ['Granite', 'Limestone', 'Gneiss', 'Basalt']
 */
fun removeVeins(rockSamples: List<String>): List<String> {

    val newSamples = mutableListOf<String>()  // Initialize an empty list to store the modified rock samples

    for (sample in rockSamples) {  // Loop through each rock sample
        if (!sample.contains("veins", ignoreCase = true)) {  // Check if the current sample does not contain the word 'veins'
            newSamples.add(sample)  // If it does not contain veins, add it to the newSamples list
        }
    }

    return newSamples  // Return the modified list of rock samples without any samples containing veins
}
/**
 * A geologist wants to remove any rock samples that contain veins in a given list.
 * Complete the code to remove the rock samples that have veins and return the modified list.
 *
 * @param rockSamples A list of rock samples, where each sample is represented by a string.
 * @return The modified list of rock samples without any samples containing veins.
 *
 * Example:
 * removeVeins(listOf("Granite", "Limestone", "Gneiss", "Marble with veins", "Basalt"))
 * Output: ['Granite', 'Limestone', 'Gneiss', 'Basalt']
 */
fun removeVeins(rockSamples: List<String>): List<String> {
/**
 * A geologist wants to remove any rock samples that contain veins in a given list.
 * Complete the code to remove the rock samples that have veins and return the modified list.
 *
 * @param rockSamples A list of rock samples, where each sample is represented by a string.
 * @return The modified list of rock samples without any samples containing veins.
 *
 * Example:
 * removeVeins(listOf("Granite", "Limestone", "Gneiss", "Marble with veins", "Basalt"))
 * Output: ['Granite', 'Limestone', 'Gneiss', 'Basalt']
 */
fun removeVeins(rockSamples: List<String>): List<String> {

    val newSamples = mutableListOf<String>()  // Initialize an empty list to store the modified rock samples

    for (sample in rockSamples) {  // Loop through each rock sample
        if (!sample.contains("veins", ignoreCase = true)) {  // Check if the current sample does not contain the word 'veins'
            newSamples.add(sample)  // If it does not contain veins, add it to the newSamples list
        }
    }

    return newSamples  // Return the modified list of rock samples without any samples containing veins
}