/**
 * Given a list of dance moves performed by a dancer, modify a specific move by replacing it with a new move.
 *
 * @param movesList A list of dance moves.
 * @param moveToModify The move to be modified.
 * @param newMove The new move to replace the old move.
 * @return The modified list of dance moves.
 */
fun modifyMoveOrder(movesList: MutableList<String>, moveToModify: String, newMove: String): List<String> {

    val index = movesList.indexOf(moveToModify)
    if (index != -1) {
        movesList[index] = newMove
    }
    return movesList
}
/**
 * Given a list of dance moves performed by a dancer, modify a specific move by replacing it with a new move.
 *
 * @param movesList A list of dance moves.
 * @param moveToModify The move to be modified.
 * @param newMove The new move to replace the old move.
 * @return The modified list of dance moves.
 */
fun modifyMoveOrder(movesList: MutableList<String>, moveToModify: String, newMove: String): List<String> {
/**
 * Given a list of dance moves performed by a dancer, modify a specific move by replacing it with a new move.
 *
 * @param movesList A list of dance moves.
 * @param moveToModify The move to be modified.
 * @param newMove The new move to replace the old move.
 * @return The modified list of dance moves.
 */
fun modifyMoveOrder(movesList: MutableList<String>, moveToModify: String, newMove: String): List<String> {

    val index = movesList.indexOf(moveToModify)
    if (index != -1) {
        movesList[index] = newMove
    }
    return movesList
}