/**
 * Modify a dancer's name located at the given index in the list of dancers.
 *
 * @param dancers A list of dancer names.
 * @param index The index at which the dancer's name needs to be modified.
 * @param newName The new name to assign to the dancer.
 */
fun modifyDancerList(dancers: MutableList<String>, index: Int, newName: String) {

    // Modify the dancer's name
    dancers[index] = newName

    // Print the modified list
    println(dancers)
}
/**
 * Modify a dancer's name located at the given index in the list of dancers.
 *
 * @param dancers A list of dancer names.
 * @param index The index at which the dancer's name needs to be modified.
 * @param newName The new name to assign to the dancer.
 */
fun modifyDancerList(dancers: MutableList<String>, index: Int, newName: String) {
/**
 * Modify a dancer's name located at the given index in the list of dancers.
 *
 * @param dancers A list of dancer names.
 * @param index The index at which the dancer's name needs to be modified.
 * @param newName The new name to assign to the dancer.
 */
fun modifyDancerList(dancers: MutableList<String>, index: Int, newName: String) {

    // Modify the dancer's name
    dancers[index] = newName

    // Print the modified list
    println(dancers)
}