/**
 * You are given a list of actresses and an index. Write a function to delete the actress at the given index.
 *
 * @param actresses A list of actresses.
 * @param index The index of the actress to be deleted.
 * @return The updated list of actresses after deleting the actress at the specified index.
 *
 * Example:
 * deleteActor(listOf("Scarlett Johansson", "Angelina Jolie", "Meryl Streep"), 1)
 * Output: ["Scarlett Johansson", "Meryl Streep"]
 */
fun deleteActor(actresses: MutableList<String>, index: Int): List<String> {

    // Check if the index is within the range of the list
    if (index < actresses.size) {
        // Remove the actress at the specified index
        actresses.removeAt(index)
    }
    return actresses
}
/**
 * You are given a list of actresses and an index. Write a function to delete the actress at the given index.
 *
 * @param actresses A list of actresses.
 * @param index The index of the actress to be deleted.
 * @return The updated list of actresses after deleting the actress at the specified index.
 *
 * Example:
 * deleteActor(listOf("Scarlett Johansson", "Angelina Jolie", "Meryl Streep"), 1)
 * Output: ["Scarlett Johansson", "Meryl Streep"]
 */
fun deleteActor(actresses: MutableList<String>, index: Int): List<String> {
/**
 * You are given a list of actresses and an index. Write a function to delete the actress at the given index.
 *
 * @param actresses A list of actresses.
 * @param index The index of the actress to be deleted.
 * @return The updated list of actresses after deleting the actress at the specified index.
 *
 * Example:
 * deleteActor(listOf("Scarlett Johansson", "Angelina Jolie", "Meryl Streep"), 1)
 * Output: ["Scarlett Johansson", "Meryl Streep"]
 */
fun deleteActor(actresses: MutableList<String>, index: Int): List<String> {

    // Check if the index is within the range of the list
    if (index < actresses.size) {
        // Remove the actress at the specified index
        actresses.removeAt(index)
    }
    return actresses
}