/**
 * This function takes in a list representing the current inventory of a farmer, and a list of unwanted crops to be removed.
 * It removes the unwanted crops from the inventory list and returns the updated inventory.
 */
fun removeUnwantedCrops(farmerInventory: MutableList<String>, unwantedCrops: List<String>): MutableList<String> {

    for (crop in unwantedCrops) {
        if (crop in farmerInventory) {
            farmerInventory.remove(crop)
        }
    }
    return farmerInventory
}
/**
 * This function takes in a list representing the current inventory of a farmer, and a list of unwanted crops to be removed.
 * It removes the unwanted crops from the inventory list and returns the updated inventory.
 */
fun removeUnwantedCrops(farmerInventory: MutableList<String>, unwantedCrops: List<String>): MutableList<String> {
/**
 * This function takes in a list representing the current inventory of a farmer, and a list of unwanted crops to be removed.
 * It removes the unwanted crops from the inventory list and returns the updated inventory.
 */
fun removeUnwantedCrops(farmerInventory: MutableList<String>, unwantedCrops: List<String>): MutableList<String> {

    for (crop in unwantedCrops) {
        if (crop in farmerInventory) {
            farmerInventory.remove(crop)
        }
    }
    return farmerInventory
}