/**
 * Given a list of animals, remove the ones that are sick.
 */
fun removeSickAnimals(animalsList: MutableList<MutableMap<String, Any>>): MutableList<MutableMap<String, Any>> {

    val iterator = animalsList.iterator()
    while (iterator.hasNext()) {
        val animal = iterator.next()
        if (animal["is_sick"] == true) {
            iterator.remove()
        }
    }
    return animalsList
}
/**
 * Given a list of animals, remove the ones that are sick.
 */
fun removeSickAnimals(animalsList: MutableList<MutableMap<String, Any>>): MutableList<MutableMap<String, Any>> {
/**
 * Given a list of animals, remove the ones that are sick.
 */
fun removeSickAnimals(animalsList: MutableList<MutableMap<String, Any>>): MutableList<MutableMap<String, Any>> {

    val iterator = animalsList.iterator()
    while (iterator.hasNext()) {
        val animal = iterator.next()
        if (animal["is_sick"] == true) {
            iterator.remove()
        }
    }
    return animalsList
}