/**
 * A zoologist wants to count the number of mammals in a zoo.
 *
 * Given a sequence of animals in the zoo, the zoologist wants to iterate over
 * the sequence and count the number of mammals present in the zoo.
 *
 * @param zooSequence A list of strings representing the animals present in the zoo.
 * @return The total count of mammals in the zoo.
 *
 * Example:
 * countMammalsInZoo(listOf("Lion", "Tiger", "Elephant", "Giraffe", "Monkey", "Penguin", "Kangaroo"))
 * Output: 3
 */
fun countMammalsInZoo(zooSequence: List<String>): Int {

    var mammalCount = 0

    for (animal in zooSequence) {
        if (animal.toLowerCase() in listOf("lion", "tiger", "elephant", "giraffe")) {
            mammalCount++
        }
    }

    return mammalCount
}
/**
 * A zoologist wants to count the number of mammals in a zoo.
 *
 * Given a sequence of animals in the zoo, the zoologist wants to iterate over
 * the sequence and count the number of mammals present in the zoo.
 *
 * @param zooSequence A list of strings representing the animals present in the zoo.
 * @return The total count of mammals in the zoo.
 *
 * Example:
 * countMammalsInZoo(listOf("Lion", "Tiger", "Elephant", "Giraffe", "Monkey", "Penguin", "Kangaroo"))
 * Output: 3
 */
fun countMammalsInZoo(zooSequence: List<String>): Int {
/**
 * A zoologist wants to count the number of mammals in a zoo.
 *
 * Given a sequence of animals in the zoo, the zoologist wants to iterate over
 * the sequence and count the number of mammals present in the zoo.
 *
 * @param zooSequence A list of strings representing the animals present in the zoo.
 * @return The total count of mammals in the zoo.
 *
 * Example:
 * countMammalsInZoo(listOf("Lion", "Tiger", "Elephant", "Giraffe", "Monkey", "Penguin", "Kangaroo"))
 * Output: 3
 */
fun countMammalsInZoo(zooSequence: List<String>): Int {

    var mammalCount = 0

    for (animal in zooSequence) {
        if (animal.toLowerCase() in listOf("lion", "tiger", "elephant", "giraffe")) {
            mammalCount++
        }
    }

    return mammalCount
}