/**
 * Given a list of actors and actresses, modify an actress's name if it contains a specific character.
 *
 * @param actor The actor's name.
 * @param actress A list of actress names.
 * @return The modified list of actress names.
 */
fun intersectionOfInOperatorAndChangingIndividualElements(actor: String, actress: MutableList<String>): List<String> {

    // Iterate over each actress's name
    for (i in actress.indices) {
        // Check if the specific character is present in the actress's name
        if ('a' in actress[i]) {
            // Replace the specific character with an asterisk in the actress's name
            actress[i] = actress[i].replace('a', '*')
        }
    }
    return actress
}
/**
 * Given a list of actors and actresses, modify an actress's name if it contains a specific character.
 *
 * @param actor The actor's name.
 * @param actress A list of actress names.
 * @return The modified list of actress names.
 */
fun intersectionOfInOperatorAndChangingIndividualElements(actor: String, actress: MutableList<String>): List<String> {
/**
 * Given a list of actors and actresses, modify an actress's name if it contains a specific character.
 *
 * @param actor The actor's name.
 * @param actress A list of actress names.
 * @return The modified list of actress names.
 */
fun intersectionOfInOperatorAndChangingIndividualElements(actor: String, actress: MutableList<String>): List<String> {

    // Iterate over each actress's name
    for (i in actress.indices) {
        // Check if the specific character is present in the actress's name
        if ('a' in actress[i]) {
            // Replace the specific character with an asterisk in the actress's name
            actress[i] = actress[i].replace('a', '*')
        }
    }
    return actress
}