/**
 * This exercise is about utilizing the addition assignment operator and repetition to enhance a dancer's performance.
 *
 * Given a dancer object and a number of times to repeat their performance, the task is to add the dancer's performance to itself using the addition assignment operator in a loop.
 * Finally, the function should return the concatenated performance string.
 *
 * @param dancer The dancer's performance as a string.
 * @param numTimes Number of times to repeat the performance.
 * @return The concatenated performance string after repetition.
 *
 * Example:
 * addAndRepeat("Twirl ", 3) => "Twirl Twirl Twirl "
 */
fun addAndRepeat(dancer: String, numTimes: Int): String {

    // Initialize an empty string to store the final performance string
    var performance = ""

    // Loop through the desired number of times
    repeat(numTimes) {
        // Add the dancer's performance to itself using the addition assignment operator
        performance += dancer
    }

    return performance
}
/**
 * This exercise is about utilizing the addition assignment operator and repetition to enhance a dancer's performance.
 *
 * Given a dancer object and a number of times to repeat their performance, the task is to add the dancer's performance to itself using the addition assignment operator in a loop.
 * Finally, the function should return the concatenated performance string.
 *
 * @param dancer The dancer's performance as a string.
 * @param numTimes Number of times to repeat the performance.
 * @return The concatenated performance string after repetition.
 *
 * Example:
 * addAndRepeat("Twirl ", 3) => "Twirl Twirl Twirl "
 */
fun addAndRepeat(dancer: String, numTimes: Int): String {
/**
 * This exercise is about utilizing the addition assignment operator and repetition to enhance a dancer's performance.
 *
 * Given a dancer object and a number of times to repeat their performance, the task is to add the dancer's performance to itself using the addition assignment operator in a loop.
 * Finally, the function should return the concatenated performance string.
 *
 * @param dancer The dancer's performance as a string.
 * @param numTimes Number of times to repeat the performance.
 * @return The concatenated performance string after repetition.
 *
 * Example:
 * addAndRepeat("Twirl ", 3) => "Twirl Twirl Twirl "
 */
fun addAndRepeat(dancer: String, numTimes: Int): String {

    // Initialize an empty string to store the final performance string
    var performance = ""

    // Loop through the desired number of times
    repeat(numTimes) {
        // Add the dancer's performance to itself using the addition assignment operator
        performance += dancer
    }

    return performance
}