/**
 * This exercise requires writing a function that applies a set of dance moves to a given dancer.
 *
 * @param dancer the name of the dancer
 * @param moves a list of dance moves
 * @return modifiedMoves the modified list of dance moves with the dancer's name appended at the end
 */
fun danceMoves(dancer: String, moves: List<String>): List<String> {

    val modifiedMoves = mutableListOf<String>()

    for (move in moves) {
        // Modify each move and add it to modifiedMoves
        modifiedMoves.add(move + " by $dancer")
    }

    // Return the modified list
    return modifiedMoves
}
/**
 * This exercise requires writing a function that applies a set of dance moves to a given dancer.
 *
 * @param dancer the name of the dancer
 * @param moves a list of dance moves
 * @return modifiedMoves the modified list of dance moves with the dancer's name appended at the end
 */
fun danceMoves(dancer: String, moves: List<String>): List<String> {
/**
 * This exercise requires writing a function that applies a set of dance moves to a given dancer.
 *
 * @param dancer the name of the dancer
 * @param moves a list of dance moves
 * @return modifiedMoves the modified list of dance moves with the dancer's name appended at the end
 */
fun danceMoves(dancer: String, moves: List<String>): List<String> {

    val modifiedMoves = mutableListOf<String>()

    for (move in moves) {
        // Modify each move and add it to modifiedMoves
        modifiedMoves.add(move + " by $dancer")
    }

    // Return the modified list
    return modifiedMoves
}