/**
 * This function takes in three parameters:
 * - animalsList: a list of animals
 * - healthIndexList: a list of health indices for the animals
 * - threshold: a value representing the minimum health index for research
 * The function should return a list of animals that require further research,
 * which means their health index is below the provided threshold.
 */
fun findResearchNeeded(animalsList: List<String>, healthIndexList: List<Int>, threshold: Int): List<String> {

    // Initialize an empty list to store animals needing research
    val animalsRequiringResearch = mutableListOf<String>()

    // Iterate over each animal in the animalsList
    for (index in animalsList.indices) {
        // Check if the health index of the current animal is below the threshold
        if (healthIndexList[index] < threshold) {
            // Append the animal to the list of animals requiring research
            animalsRequiringResearch.add(animalsList[index])
        }
    }

    // Return the final list of animals requiring research
    return animalsRequiringResearch
}
/**
 * This function takes in three parameters:
 * - animalsList: a list of animals
 * - healthIndexList: a list of health indices for the animals
 * - threshold: a value representing the minimum health index for research
 * The function should return a list of animals that require further research,
 * which means their health index is below the provided threshold.
 */
fun findResearchNeeded(animalsList: List<String>, healthIndexList: List<Int>, threshold: Int): List<String> {
/**
 * This function takes in three parameters:
 * - animalsList: a list of animals
 * - healthIndexList: a list of health indices for the animals
 * - threshold: a value representing the minimum health index for research
 * The function should return a list of animals that require further research,
 * which means their health index is below the provided threshold.
 */
fun findResearchNeeded(animalsList: List<String>, healthIndexList: List<Int>, threshold: Int): List<String> {

    // Initialize an empty list to store animals needing research
    val animalsRequiringResearch = mutableListOf<String>()

    // Iterate over each animal in the animalsList
    for (index in animalsList.indices) {
        // Check if the health index of the current animal is below the threshold
        if (healthIndexList[index] < threshold) {
            // Append the animal to the list of animals requiring research
            animalsRequiringResearch.add(animalsList[index])
        }
    }

    // Return the final list of animals requiring research
    return animalsRequiringResearch
}