/**
 * This function takes in two tuples and a number and concatenates the tuples, repeating the concatenation
 * process based on the given number. Returns the final concatenated tuple.
 *
 * @param tup1 First tuple
 * @param tup2 Second tuple
 * @param repeat Number of times to repeat the concatenation process
 * @return Final concatenated tuple
 */
fun concatenateTuples(tup1: List<Any>, tup2: List<Any>, repeat: Int): List<Any> {

    var result = emptyList<Any>()
    var i = 0
    while (i < repeat) {
        result += tup1 + tup2
        i++
    }
    return result
}
/**
 * This function takes in two tuples and a number and concatenates the tuples, repeating the concatenation
 * process based on the given number. Returns the final concatenated tuple.
 *
 * @param tup1 First tuple
 * @param tup2 Second tuple
 * @param repeat Number of times to repeat the concatenation process
 * @return Final concatenated tuple
 */
fun concatenateTuples(tup1: List<Any>, tup2: List<Any>, repeat: Int): List<Any> {
/**
 * This function takes in two tuples and a number and concatenates the tuples, repeating the concatenation
 * process based on the given number. Returns the final concatenated tuple.
 *
 * @param tup1 First tuple
 * @param tup2 Second tuple
 * @param repeat Number of times to repeat the concatenation process
 * @return Final concatenated tuple
 */
fun concatenateTuples(tup1: List<Any>, tup2: List<Any>, repeat: Int): List<Any> {

    var result = emptyList<Any>()
    var i = 0
    while (i < repeat) {
        result += tup1 + tup2
        i++
    }
    return result
}