/**
 * This function takes in two lists: animalList and characteristicList.
 * It returns a new list of animals that have all the characteristics specified in the characteristicList.
 */
fun zoologist(animalList: List<String>, characteristicList: List<String>): List<String> {

    val matchingAnimals = mutableListOf<String>()

    for (animal in animalList) {
        var allCharacteristicsFound = true

        for (characteristic in characteristicList) {
            if (characteristic !in animal) {
                allCharacteristicsFound = false
                break
            }
        }

        if (allCharacteristicsFound) {
            matchingAnimals.add(animal)
        }
    }

    return matchingAnimals
}
/**
 * This function takes in two lists: animalList and characteristicList.
 * It returns a new list of animals that have all the characteristics specified in the characteristicList.
 */
fun zoologist(animalList: List<String>, characteristicList: List<String>): List<String> {
/**
 * This function takes in two lists: animalList and characteristicList.
 * It returns a new list of animals that have all the characteristics specified in the characteristicList.
 */
fun zoologist(animalList: List<String>, characteristicList: List<String>): List<String> {

    val matchingAnimals = mutableListOf<String>()

    for (animal in animalList) {
        var allCharacteristicsFound = true

        for (characteristic in characteristicList) {
            if (characteristic !in animal) {
                allCharacteristicsFound = false
                break
            }
        }

        if (allCharacteristicsFound) {
            matchingAnimals.add(animal)
        }
    }

    return matchingAnimals
}