/**
 * Given two predator types and a prey type, this function returns a boolean value
 * indicating whether the prey is a mammal or not based on the following criteria:
 *
 * - If either of the predators is a carnivore XOR the prey is warm-blooded,
 *   the prey is considered to be a mammal.
 * - If neither of the predators is a carnivore XOR the prey is cold-blooded,
 *   the prey is considered to be a mammal.
 * - Otherwise, the prey is not classified as a mammal.
 *
 * @param predator1 a string representing the first type of predator
 * @param predator2 a string representing the second type of predator
 * @param prey a string representing the type of prey
 * @return Boolean value: True if the prey is classified as a mammal, False otherwise
 */
fun findMammals(predator1: String, predator2: String, prey: String): Boolean {

    return (predator1 == "carnivore") xor (predator2 == "carnivore") && (prey == "warm-blooded") xor (predator1 == "carnivore")
}
/**
 * Given two predator types and a prey type, this function returns a boolean value
 * indicating whether the prey is a mammal or not based on the following criteria:
 *
 * - If either of the predators is a carnivore XOR the prey is warm-blooded,
 *   the prey is considered to be a mammal.
 * - If neither of the predators is a carnivore XOR the prey is cold-blooded,
 *   the prey is considered to be a mammal.
 * - Otherwise, the prey is not classified as a mammal.
 *
 * @param predator1 a string representing the first type of predator
 * @param predator2 a string representing the second type of predator
 * @param prey a string representing the type of prey
 * @return Boolean value: True if the prey is classified as a mammal, False otherwise
 */
fun findMammals(predator1: String, predator2: String, prey: String): Boolean {
/**
 * Given two predator types and a prey type, this function returns a boolean value
 * indicating whether the prey is a mammal or not based on the following criteria:
 *
 * - If either of the predators is a carnivore XOR the prey is warm-blooded,
 *   the prey is considered to be a mammal.
 * - If neither of the predators is a carnivore XOR the prey is cold-blooded,
 *   the prey is considered to be a mammal.
 * - Otherwise, the prey is not classified as a mammal.
 *
 * @param predator1 a string representing the first type of predator
 * @param predator2 a string representing the second type of predator
 * @param prey a string representing the type of prey
 * @return Boolean value: True if the prey is classified as a mammal, False otherwise
 */
fun findMammals(predator1: String, predator2: String, prey: String): Boolean {

    return (predator1 == "carnivore") xor (predator2 == "carnivore") && (prey == "warm-blooded") xor (predator1 == "carnivore")
}