/**
 * This exercise is about performing dance moves.
 * Complete the code to make a dancer perform the given moves in sequence.
 * The function danceMoves takes three string arguments: move1, move2, move3.
 * It should return a string representing the final sequence of moves.
 */
fun danceMoves(move1: String, move2: String, move3: String): String {

    // Initialize an empty string to store the final sequence of moves
    var sequenceOfMoves = ""

    // Perform the dance moves in sequence
    // Ensure that each move is separated with a space
    // The final sequence should be stored in the 'sequenceOfMoves' variable

    sequenceOfMoves += "$move1 "
    sequenceOfMoves += "${move1.reversed()} "
    sequenceOfMoves += "${move2.repeat(2)} "
    sequenceOfMoves += "${move3.toLowerCase()} "
    sequenceOfMoves += "${move3.toUpperCase()} "
    sequenceOfMoves += "${move2.reversed()} "

    return sequenceOfMoves
}
/**
 * This exercise is about performing dance moves.
 * Complete the code to make a dancer perform the given moves in sequence.
 * The function danceMoves takes three string arguments: move1, move2, move3.
 * It should return a string representing the final sequence of moves.
 */
fun danceMoves(move1: String, move2: String, move3: String): String {
/**
 * This exercise is about performing dance moves.
 * Complete the code to make a dancer perform the given moves in sequence.
 * The function danceMoves takes three string arguments: move1, move2, move3.
 * It should return a string representing the final sequence of moves.
 */
fun danceMoves(move1: String, move2: String, move3: String): String {

    // Initialize an empty string to store the final sequence of moves
    var sequenceOfMoves = ""

    // Perform the dance moves in sequence
    // Ensure that each move is separated with a space
    // The final sequence should be stored in the 'sequenceOfMoves' variable

    sequenceOfMoves += "$move1 "
    sequenceOfMoves += "${move1.reversed()} "
    sequenceOfMoves += "${move2.repeat(2)} "
    sequenceOfMoves += "${move3.toLowerCase()} "
    sequenceOfMoves += "${move3.toUpperCase()} "
    sequenceOfMoves += "${move2.reversed()} "

    return sequenceOfMoves
}