/**
 * Given a list of animals, determine if each animal in the list is a mammal or a bird.
 *
 * @param animals A list of animal names
 * @return A list of strings indicating whether each animal is a mammal or a bird
 */
fun isMammalOrBird(animals: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (animal in animals) {
        when (animal.toLowerCase()) {
            in listOf("dog", "cat", "lion", "tiger") -> result.add("Mammal")
            in listOf("eagle", "sparrow", "owl", "hummingbird") -> result.add("Bird")
            else -> result.add("Unknown")
        }
    }
    return result
}
/**
 * Given a list of animals, determine if each animal in the list is a mammal or a bird.
 *
 * @param animals A list of animal names
 * @return A list of strings indicating whether each animal is a mammal or a bird
 */
fun isMammalOrBird(animals: List<String>): List<String> {
/**
 * Given a list of animals, determine if each animal in the list is a mammal or a bird.
 *
 * @param animals A list of animal names
 * @return A list of strings indicating whether each animal is a mammal or a bird
 */
fun isMammalOrBird(animals: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (animal in animals) {
        when (animal.toLowerCase()) {
            in listOf("dog", "cat", "lion", "tiger") -> result.add("Mammal")
            in listOf("eagle", "sparrow", "owl", "hummingbird") -> result.add("Bird")
            else -> result.add("Unknown")
        }
    }
    return result
}