/**
 * This function takes a tuple of numbers, an integer indicating the number of times to repeat the tuple,
 * and a string to concatenate with each element of the repeated tuple.
 *
 * Returns a tuple obtained by concatenating the repeated original tuple with the specified string.
 */
fun tupleConcatenationAndRepeating(numbers: List<Int>, times: Int, string: String): List<String> {

    val repeatedTuple = numbers.flatMap { List(times) { it } }
    val concatenatedTuple = repeatedTuple.map { "$it$string" }
    return concatenatedTuple
}
/**
 * This function takes a tuple of numbers, an integer indicating the number of times to repeat the tuple,
 * and a string to concatenate with each element of the repeated tuple.
 *
 * Returns a tuple obtained by concatenating the repeated original tuple with the specified string.
 */
fun tupleConcatenationAndRepeating(numbers: List<Int>, times: Int, string: String): List<String> {
/**
 * This function takes a tuple of numbers, an integer indicating the number of times to repeat the tuple,
 * and a string to concatenate with each element of the repeated tuple.
 *
 * Returns a tuple obtained by concatenating the repeated original tuple with the specified string.
 */
fun tupleConcatenationAndRepeating(numbers: List<Int>, times: Int, string: String): List<String> {

    val repeatedTuple = numbers.flatMap { List(times) { it } }
    val concatenatedTuple = repeatedTuple.map { "$it$string" }
    return concatenatedTuple
}