/**
 * Given two sets, the function returns the percentage (0 to 100) of common items between the two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return Percentage of common items between the two sets
 */
fun findPercentageOfCommonItems(set1: Set<*>, set2: Set<*>): Float {

    // Find the intersection of the two sets
    val commonItems = set1.intersect(set2)

    // Calculate the percentage of common items
    val percentage = (commonItems.size.toFloat() / set1.size.toFloat()) * 100

    return percentage
}
/**
 * Given two sets, the function returns the percentage (0 to 100) of common items between the two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return Percentage of common items between the two sets
 */
fun findPercentageOfCommonItems(set1: Set<*>, set2: Set<*>): Float {
/**
 * Given two sets, the function returns the percentage (0 to 100) of common items between the two sets.
 *
 * @param set1 The first set
 * @param set2 The second set
 * @return Percentage of common items between the two sets
 */
fun findPercentageOfCommonItems(set1: Set<*>, set2: Set<*>): Float {

    // Find the intersection of the two sets
    val commonItems = set1.intersect(set2)

    // Calculate the percentage of common items
    val percentage = (commonItems.size.toFloat() / set1.size.toFloat()) * 100

    return percentage
}