/**
 * This function takes in two sets and returns a list of common elements between them.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return List of common elements between the two sets
 */
fun checkCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first set
    for (element in set1) {
        // Check if the element is also present in the second set
        if (element in set2) {
            // Add the common element to the list
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * This function takes in two sets and returns a list of common elements between them.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return List of common elements between the two sets
 */
fun checkCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {
/**
 * This function takes in two sets and returns a list of common elements between them.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return List of common elements between the two sets
 */
fun checkCommonElements(set1: Set<Any>, set2: Set<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in the first set
    for (element in set1) {
        // Check if the element is also present in the second set
        if (element in set2) {
            // Add the common element to the list
            commonElements.add(element)
        }
    }

    return commonElements
}