/**
 * Given the lists of actors/actresses' names, ages, and awards,
 * find the female actors/actresses who are younger than 40
 * and have won more than 3 awards.
 *
 * @param nameList A list of strings representing the actors/actresses' names.
 * @param ageList A list of integers representing the actors/actresses' ages.
 * @param awardsList A list of integers representing the number of awards won by each actor/actress.
 * @return A list of strings representing the names of female actors/actresses who meet the given conditions.
 */
fun findFemaleActor(nameList: List<String>, ageList: List<Int>, awardsList: List<Int>): List<String> {

    val femaleActors = mutableListOf<String>()

    for (i in nameList.indices) {
        if (ageList[i] < 40 && awardsList[i] > 3) {
            femaleActors.add(nameList[i])
        }
    }

    return femaleActors
}

val nameList = listOf("Jennifer Lawrence", "Natalie Portman", "Emma Stone", "Gal Gadot")
val ageList = listOf(29, 37, 31, 34)
val awardsList = listOf(4, 2, 5, 6)

val femaleActors = findFemaleActor(nameList, ageList, awardsList)
/**
 * Given the lists of actors/actresses' names, ages, and awards,
 * find the female actors/actresses who are younger than 40
 * and have won more than 3 awards.
 *
 * @param nameList A list of strings representing the actors/actresses' names.
 * @param ageList A list of integers representing the actors/actresses' ages.
 * @param awardsList A list of integers representing the number of awards won by each actor/actress.
 * @return A list of strings representing the names of female actors/actresses who meet the given conditions.
 */
fun findFemaleActor(nameList: List<String>, ageList: List<Int>, awardsList: List<Int>): List<String> {
/**
 * Given the lists of actors/actresses' names, ages, and awards,
 * find the female actors/actresses who are younger than 40
 * and have won more than 3 awards.
 *
 * @param nameList A list of strings representing the actors/actresses' names.
 * @param ageList A list of integers representing the actors/actresses' ages.
 * @param awardsList A list of integers representing the number of awards won by each actor/actress.
 * @return A list of strings representing the names of female actors/actresses who meet the given conditions.
 */
fun findFemaleActor(nameList: List<String>, ageList: List<Int>, awardsList: List<Int>): List<String> {

    val femaleActors = mutableListOf<String>()

    for (i in nameList.indices) {
        if (ageList[i] < 40 && awardsList[i] > 3) {
            femaleActors.add(nameList[i])
        }
    }

    return femaleActors
}

val nameList = listOf("Jennifer Lawrence", "Natalie Portman", "Emma Stone", "Gal Gadot")
val ageList = listOf(29, 37, 31, 34)
val awardsList = listOf(4, 2, 5, 6)

val femaleActors = findFemaleActor(nameList, ageList, awardsList)