/**
 * Find the common elements between two lists and return them as a set.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A set containing the common elements of the two lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (item1 in list1) {
        for (item2 in list2) {
            if (item1 == item2) {
                commonElements.add(item1)
            }
        }
    }

    return commonElements
}
/**
 * Find the common elements between two lists and return them as a set.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A set containing the common elements of the two lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * Find the common elements between two lists and return them as a set.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A set containing the common elements of the two lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (item1 in list1) {
        for (item2 in list2) {
            if (item1 == item2) {
                commonElements.add(item1)
            }
        }
    }

    return commonElements
}