/**
 * This function takes a dictionary representing a farmer's farm
 * and a list of animals to delete from the farm. It then deletes
 * the specified animals from the farm dictionary and returns the updated dictionary.
 *
 * @param farmDict A dictionary representing a farmer's farm. The keys
 *                 are the animal names and the values are the quantities.
 * @param deleteList A list of animal names to delete from the farm.
 * @return The updated dictionary after deleting the specified animals.
 */
fun deleteFarmAnimals(farmDict: MutableMap<String, Int>, deleteList: List<String>): MutableMap<String, Int> {

    // Perform deletion for each animal in the deleteList
    for (animal in deleteList) {
        if (animal in farmDict) {
            farmDict.remove(animal)
        }
    }
    return farmDict
}
/**
 * This function takes a dictionary representing a farmer's farm
 * and a list of animals to delete from the farm. It then deletes
 * the specified animals from the farm dictionary and returns the updated dictionary.
 *
 * @param farmDict A dictionary representing a farmer's farm. The keys
 *                 are the animal names and the values are the quantities.
 * @param deleteList A list of animal names to delete from the farm.
 * @return The updated dictionary after deleting the specified animals.
 */
fun deleteFarmAnimals(farmDict: MutableMap<String, Int>, deleteList: List<String>): MutableMap<String, Int> {
/**
 * This function takes a dictionary representing a farmer's farm
 * and a list of animals to delete from the farm. It then deletes
 * the specified animals from the farm dictionary and returns the updated dictionary.
 *
 * @param farmDict A dictionary representing a farmer's farm. The keys
 *                 are the animal names and the values are the quantities.
 * @param deleteList A list of animal names to delete from the farm.
 * @return The updated dictionary after deleting the specified animals.
 */
fun deleteFarmAnimals(farmDict: MutableMap<String, Int>, deleteList: List<String>): MutableMap<String, Int> {

    // Perform deletion for each animal in the deleteList
    for (animal in deleteList) {
        if (animal in farmDict) {
            farmDict.remove(animal)
        }
    }
    return farmDict
}