/**
 * Given two lists t1 and t2, the function should return a new list containing common elements of both lists.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val intersection = (t1.toSet() intersect t2.toSet()).toList()  // Find the intersection of the two lists using set operations
    return intersection
}
/**
 * Given two lists t1 and t2, the function should return a new list containing common elements of both lists.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {
/**
 * Given two lists t1 and t2, the function should return a new list containing common elements of both lists.
 */
fun commonElements(t1: List<Any>, t2: List<Any>): List<Any> {

    val intersection = (t1.toSet() intersect t2.toSet()).toList()  // Find the intersection of the two lists using set operations
    return intersection
}