/**
 * This function takes in two lists of animals and returns a list containing the common animals between them.
 */
fun findCommonAnimals(animals1: List<String>, animals2: List<String>): List<String> {

    val commonAnimals = mutableListOf<String>()

    // Iterate over the animals in the first list
    for (animal1 in animals1) {
        // Iterate over the animals in the second list
        for (animal2 in animals2) {
            // Check if the current animal in the first list matches with an animal in the second list
            if (animal1 == animal2) {
                // Add the common animal to the list of common animals
                commonAnimals.add(animal1)
            }
        }
    }

    return commonAnimals
}
/**
 * This function takes in two lists of animals and returns a list containing the common animals between them.
 */
fun findCommonAnimals(animals1: List<String>, animals2: List<String>): List<String> {
/**
 * This function takes in two lists of animals and returns a list containing the common animals between them.
 */
fun findCommonAnimals(animals1: List<String>, animals2: List<String>): List<String> {

    val commonAnimals = mutableListOf<String>()

    // Iterate over the animals in the first list
    for (animal1 in animals1) {
        // Iterate over the animals in the second list
        for (animal2 in animals2) {
            // Check if the current animal in the first list matches with an animal in the second list
            if (animal1 == animal2) {
                // Add the common animal to the list of common animals
                commonAnimals.add(animal1)
            }
        }
    }

    return commonAnimals
}