/**
 * This function takes in a list of tuples representing different animals,
 * and returns the names of the animals that satisfy the given conditions of
 * being from a specific continent and having a specific color.
 *
 * @param animalList A list of tuples representing animals, where each tuple contains the name of the animal,
 * its continent of origin, and its color.
 * @param continent A string representing the continent name.
 * @param color A string representing the color.
 * @return A list containing the names of animals that meet the specified conditions.
 */
fun findAnimal(animalList: List<Triple<String, String, String>>, continent: String, color: String): List<String> {

    val matchingAnimals = mutableListOf<String>()

    for (animal in animalList) {
        if (animal.second == continent && animal.third == color) {
            matchingAnimals.add(animal.first)
        }
    }

    return matchingAnimals
}
/**
 * This function takes in a list of tuples representing different animals,
 * and returns the names of the animals that satisfy the given conditions of
 * being from a specific continent and having a specific color.
 *
 * @param animalList A list of tuples representing animals, where each tuple contains the name of the animal,
 * its continent of origin, and its color.
 * @param continent A string representing the continent name.
 * @param color A string representing the color.
 * @return A list containing the names of animals that meet the specified conditions.
 */
fun findAnimal(animalList: List<Triple<String, String, String>>, continent: String, color: String): List<String> {
/**
 * This function takes in a list of tuples representing different animals,
 * and returns the names of the animals that satisfy the given conditions of
 * being from a specific continent and having a specific color.
 *
 * @param animalList A list of tuples representing animals, where each tuple contains the name of the animal,
 * its continent of origin, and its color.
 * @param continent A string representing the continent name.
 * @param color A string representing the color.
 * @return A list containing the names of animals that meet the specified conditions.
 */
fun findAnimal(animalList: List<Triple<String, String, String>>, continent: String, color: String): List<String> {

    val matchingAnimals = mutableListOf<String>()

    for (animal in animalList) {
        if (animal.second == continent && animal.third == color) {
            matchingAnimals.add(animal.first)
        }
    }

    return matchingAnimals
}