/**
 * This function takes two tuples as input and returns a new tuple
 * containing the elements that are common in both tuples.
 *
 * @param t1 First input tuple
 * @param t2 Second input tuple
 * @return Tuple containing the common elements in both input tuples
 */
fun intersectionOfTuples(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate through the first tuple
    for (element in t1) {
        // Check if the current element is present in the second tuple
        if (element in t2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    // Return a list containing the common elements
    return commonElements
}
/**
 * This function takes two tuples as input and returns a new tuple
 * containing the elements that are common in both tuples.
 *
 * @param t1 First input tuple
 * @param t2 Second input tuple
 * @return Tuple containing the common elements in both input tuples
 */
fun intersectionOfTuples(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * This function takes two tuples as input and returns a new tuple
 * containing the elements that are common in both tuples.
 *
 * @param t1 First input tuple
 * @param t2 Second input tuple
 * @return Tuple containing the common elements in both input tuples
 */
fun intersectionOfTuples(t1: List<Any>, t2: List<Any>): List<Any> {

    // Initialize an empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate through the first tuple
    for (element in t1) {
        // Check if the current element is present in the second tuple
        if (element in t2) {
            // Append the element to the commonElements list
            commonElements.add(element)
        }
    }

    // Return a list containing the common elements
    return commonElements
}