/**
 * This function takes two lists as input and returns the common elements between them.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A set of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonElements.add(item)
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns the common elements between them.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A set of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {
/**
 * This function takes two lists as input and returns the common elements between them.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return A set of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): Set<Any> {

    val commonElements = mutableSetOf<Any>()

    for (item in list1) {
        if (item in list2) {
            commonElements.add(item)
        }
    }

    return commonElements
}