/**
 * Given two lists, find the common elements between them using the ternary operator.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements.
 */
fun findCommonElementsUsingTernaryOperator(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = list1.filter { it in list2 }
    return commonElements
}
/**
 * Given two lists, find the common elements between them using the ternary operator.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements.
 */
fun findCommonElementsUsingTernaryOperator(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the common elements between them using the ternary operator.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A new list containing the common elements.
 */
fun findCommonElementsUsingTernaryOperator(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = list1.filter { it in list2 }
    return commonElements
}