/**
 * This function takes a name and a number of repetitions as input,
 * and generates a message by manipulating the name using loops.
 *
 * @param name The name of the athlete.
 * @param repetitions The number of times the message should be repeated.
 * @return The generated message.
 *
 * Example:
 * generateMessage("Mike Tyson", 3) -> "Meeek TysooonMeeek TysooonMeeek Tysooon"
 */
fun generateMessage(name: String, repetitions: Int): String {

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

    // Iterate through each character in the name
    for (char in name) {
        // Repeat each character of the name the specified number of times and append to the message
        message += char.toString().repeat(repetitions)
    }

    // Repeat the entire message the specified number of times
    message = message.repeat(repetitions)

    return message
}
/**
 * This function takes a name and a number of repetitions as input,
 * and generates a message by manipulating the name using loops.
 *
 * @param name The name of the athlete.
 * @param repetitions The number of times the message should be repeated.
 * @return The generated message.
 *
 * Example:
 * generateMessage("Mike Tyson", 3) -> "Meeek TysooonMeeek TysooonMeeek Tysooon"
 */
fun generateMessage(name: String, repetitions: Int): String {
/**
 * This function takes a name and a number of repetitions as input,
 * and generates a message by manipulating the name using loops.
 *
 * @param name The name of the athlete.
 * @param repetitions The number of times the message should be repeated.
 * @return The generated message.
 *
 * Example:
 * generateMessage("Mike Tyson", 3) -> "Meeek TysooonMeeek TysooonMeeek Tysooon"
 */
fun generateMessage(name: String, repetitions: Int): String {

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

    // Iterate through each character in the name
    for (char in name) {
        // Repeat each character of the name the specified number of times and append to the message
        message += char.toString().repeat(repetitions)
    }

    // Repeat the entire message the specified number of times
    message = message.repeat(repetitions)

    return message
}