/**
 * Find and return the common elements between two lists.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val set1 = list1.toSet()
    val set2 = list2.toSet()
    val commonElements = set1.intersect(set2)

    return commonElements
}
/**
 * Find and return the common elements between two lists.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * Find and return the common elements between two lists.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val set1 = list1.toSet()
    val set2 = list2.toSet()
    val commonElements = set1.intersect(set2)

    return commonElements
}