/**
 * This code generates all possible combinations of actor/actress names using nested for loops.
 */
fun generateActorNameCombinations(firstNames: List<String>, lastNames: List<String>): List<String> {

    val nameCombinations = mutableListOf<String>()

    for (firstName in firstNames) {
        for (lastName in lastNames) {
            val fullName = "$firstName $lastName"
            nameCombinations.add(fullName)
        }
    }

    return nameCombinations
}
/**
 * This code generates all possible combinations of actor/actress names using nested for loops.
 */
fun generateActorNameCombinations(firstNames: List<String>, lastNames: List<String>): List<String> {
/**
 * This code generates all possible combinations of actor/actress names using nested for loops.
 */
fun generateActorNameCombinations(firstNames: List<String>, lastNames: List<String>): List<String> {

    val nameCombinations = mutableListOf<String>()

    for (firstName in firstNames) {
        for (lastName in lastNames) {
            val fullName = "$firstName $lastName"
            nameCombinations.add(fullName)
        }
    }

    return nameCombinations
}