/**
 * Given two lists, find the unique elements present in both lists.
 *
 * @param list1 First list with elements
 * @param list2 Second list with elements
 * @return A list of unique elements present in both lists.
 */
fun findUniqueElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Convert the input lists into sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Convert the intersection set back to a list
    val uniqueElements = intersection.toList()

    return uniqueElements
}
/**
 * Given two lists, find the unique elements present in both lists.
 *
 * @param list1 First list with elements
 * @param list2 Second list with elements
 * @return A list of unique elements present in both lists.
 */
fun findUniqueElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * Given two lists, find the unique elements present in both lists.
 *
 * @param list1 First list with elements
 * @param list2 Second list with elements
 * @return A list of unique elements present in both lists.
 */
fun findUniqueElements(list1: List<Any>, list2: List<Any>): List<Any> {

    // Convert the input lists into sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find the intersection of the two sets
    val intersection = set1.intersect(set2)

    // Convert the intersection set back to a list
    val uniqueElements = intersection.toList()

    return uniqueElements
}