/**
 * Given a tuple, repeat each element a certain number of times and return the resulting tuple.
 *
 * @param tuple1 Input tuple
 * @param repetitions Number of repetitions for each element
 * @return Tuple with repeated elements
 */
fun repeatTupleElements(tuple1: List<Any>, repetitions: Int): List<Any> {

    val result = mutableListOf<Any>()
    for (item in tuple1) {
        repeat(repetitions) {
            result.add(item)
        }
    }
    return result
}
/**
 * Given a tuple, repeat each element a certain number of times and return the resulting tuple.
 *
 * @param tuple1 Input tuple
 * @param repetitions Number of repetitions for each element
 * @return Tuple with repeated elements
 */
fun repeatTupleElements(tuple1: List<Any>, repetitions: Int): List<Any> {
/**
 * Given a tuple, repeat each element a certain number of times and return the resulting tuple.
 *
 * @param tuple1 Input tuple
 * @param repetitions Number of repetitions for each element
 * @return Tuple with repeated elements
 */
fun repeatTupleElements(tuple1: List<Any>, repetitions: Int): List<Any> {

    val result = mutableListOf<Any>()
    for (item in tuple1) {
        repeat(repetitions) {
            result.add(item)
        }
    }
    return result
}