/**
 * This function removes the weeds from the crops set.
 *
 * @param crops A set of crops in the field.
 * @param weeds A set of weeds in the field.
 * @return A set of crops after removing the weeds.
 */
fun removeWeeds(crops: MutableSet<String>, weeds: Set<String>): MutableSet<String> {

    // Find the crops that are not affected by the weeds
    val unaffectedCrops = crops - weeds

    // Find the crops that are affected by the weeds
    val affectedCrops = crops.filter { it !in unaffectedCrops }.toSet()

    // Remove the affected crops from the field
    crops.removeAll(affectedCrops)

    return crops
}
/**
 * This function removes the weeds from the crops set.
 *
 * @param crops A set of crops in the field.
 * @param weeds A set of weeds in the field.
 * @return A set of crops after removing the weeds.
 */
fun removeWeeds(crops: MutableSet<String>, weeds: Set<String>): MutableSet<String> {
/**
 * This function removes the weeds from the crops set.
 *
 * @param crops A set of crops in the field.
 * @param weeds A set of weeds in the field.
 * @return A set of crops after removing the weeds.
 */
fun removeWeeds(crops: MutableSet<String>, weeds: Set<String>): MutableSet<String> {

    // Find the crops that are not affected by the weeds
    val unaffectedCrops = crops - weeds

    // Find the crops that are affected by the weeds
    val affectedCrops = crops.filter { it !in unaffectedCrops }.toSet()

    // Remove the affected crops from the field
    crops.removeAll(affectedCrops)

    return crops
}