/**
 * This function takes three lists: mammals, reptiles, and birds.
 * It counts the number of species that are present in both mammals and reptiles,
 * and also present in birds.
 * The function returns the count of such species.
 */
fun countSpecies(mammals: List<String>, reptiles: List<String>, birds: List<String>): Int {

    var count = 0

    for (species in mammals) {
        if (species in reptiles && species in birds) {
            count++
        }
    }

    return count
}
/**
 * This function takes three lists: mammals, reptiles, and birds.
 * It counts the number of species that are present in both mammals and reptiles,
 * and also present in birds.
 * The function returns the count of such species.
 */
fun countSpecies(mammals: List<String>, reptiles: List<String>, birds: List<String>): Int {
/**
 * This function takes three lists: mammals, reptiles, and birds.
 * It counts the number of species that are present in both mammals and reptiles,
 * and also present in birds.
 * The function returns the count of such species.
 */
fun countSpecies(mammals: List<String>, reptiles: List<String>, birds: List<String>): Int {

    var count = 0

    for (species in mammals) {
        if (species in reptiles && species in birds) {
            count++
        }
    }

    return count
}