/**
 * You are given two tuples, lst1 and lst2, each containing an equal number of elements.
 * Write a function that concatenates the corresponding elements of lst1 and lst2, and returns a new tuple.
 * The function should also remove any duplicate elements from the result.
 *
 * @param lst1 a tuple containing elements
 * @param lst2 a tuple containing elements
 * @return A new tuple with concatenated elements of lst1 and lst2 without duplicates
 *
 * Example:
 * concatenateTuples(listOf(1, 2, 3), listOf(4, 5, 6)) returns (1, 2, 3, 4, 5, 6)
 * concatenateTuples(listOf(1, 2, 3), listOf(3, 2, 1)) returns (1, 2, 3)
 */
fun concatenateTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {

    // Concatenate the tuples
    val result = lst1 + lst2

    // Remove duplicate elements
    return result.toSet().toList()
}
/**
 * You are given two tuples, lst1 and lst2, each containing an equal number of elements.
 * Write a function that concatenates the corresponding elements of lst1 and lst2, and returns a new tuple.
 * The function should also remove any duplicate elements from the result.
 *
 * @param lst1 a tuple containing elements
 * @param lst2 a tuple containing elements
 * @return A new tuple with concatenated elements of lst1 and lst2 without duplicates
 *
 * Example:
 * concatenateTuples(listOf(1, 2, 3), listOf(4, 5, 6)) returns (1, 2, 3, 4, 5, 6)
 * concatenateTuples(listOf(1, 2, 3), listOf(3, 2, 1)) returns (1, 2, 3)
 */
fun concatenateTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * You are given two tuples, lst1 and lst2, each containing an equal number of elements.
 * Write a function that concatenates the corresponding elements of lst1 and lst2, and returns a new tuple.
 * The function should also remove any duplicate elements from the result.
 *
 * @param lst1 a tuple containing elements
 * @param lst2 a tuple containing elements
 * @return A new tuple with concatenated elements of lst1 and lst2 without duplicates
 *
 * Example:
 * concatenateTuples(listOf(1, 2, 3), listOf(4, 5, 6)) returns (1, 2, 3, 4, 5, 6)
 * concatenateTuples(listOf(1, 2, 3), listOf(3, 2, 1)) returns (1, 2, 3)
 */
fun concatenateTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {

    // Concatenate the tuples
    val result = lst1 + lst2

    // Remove duplicate elements
    return result.toSet().toList()
}