/**
 * Find the common elements in two tuples using the ternary operator
 */
fun findCommonElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    // Create a new empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first tuple
    for (element in tuple1) {
        // Use the ternary operator with multiple conditions
        // If the element exists in the second tuple and is not already in the commonElements list, add it
        if (element in tuple2 && element !in commonElements) {
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * Find the common elements in two tuples using the ternary operator
 */
fun findCommonElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {
/**
 * Find the common elements in two tuples using the ternary operator
 */
fun findCommonElements(tuple1: List<Any>, tuple2: List<Any>): List<Any> {

    // Create a new empty list to store the common elements
    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first tuple
    for (element in tuple1) {
        // Use the ternary operator with multiple conditions
        // If the element exists in the second tuple and is not already in the commonElements list, add it
        if (element in tuple2 && element !in commonElements) {
            commonElements.add(element)
        }
    }

    return commonElements
}