/**
 * Given two lists, find the common elements between them.
 * Returns a set containing the common elements.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    // Convert lists to sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find common elements
    val common = set1.intersect(set2)

    return common
}
/**
 * Given two lists, find the common elements between them.
 * Returns a set containing the common elements.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * Given two lists, find the common elements between them.
 * Returns a set containing the common elements.
 *
 * @param list1 First list.
 * @param list2 Second list.
 * @return Set containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    // Convert lists to sets
    val set1 = list1.toSet()
    val set2 = list2.toSet()

    // Find common elements
    val common = set1.intersect(set2)

    return common
}