/**
 * This function finds the common colors between two sets of colors
 * and returns a new set containing the intersection of the two given sets.
 *
 * @param colorSet1 A set of colors (represented as strings).
 * @param colorSet2 A set of colors (represented as strings).
 * @return A set containing the common colors between colorSet1 and colorSet2.
 */
fun findCommonColors(colorSet1: Set<String>, colorSet2: Set<String>): Set<String> {

    val commonColors = mutableSetOf<String>()

    // Iterate through each color in colorSet1
    for (color in colorSet1) {
        // Check if the color starts with "less than" or contains the "OR" operator
        if (color.startsWith("<") || "OR" in color) {
            // Add the color to the commonColors set
            commonColors.add(color)
        }
    }

    return commonColors
}
/**
 * This function finds the common colors between two sets of colors
 * and returns a new set containing the intersection of the two given sets.
 *
 * @param colorSet1 A set of colors (represented as strings).
 * @param colorSet2 A set of colors (represented as strings).
 * @return A set containing the common colors between colorSet1 and colorSet2.
 */
fun findCommonColors(colorSet1: Set<String>, colorSet2: Set<String>): Set<String> {
/**
 * This function finds the common colors between two sets of colors
 * and returns a new set containing the intersection of the two given sets.
 *
 * @param colorSet1 A set of colors (represented as strings).
 * @param colorSet2 A set of colors (represented as strings).
 * @return A set containing the common colors between colorSet1 and colorSet2.
 */
fun findCommonColors(colorSet1: Set<String>, colorSet2: Set<String>): Set<String> {

    val commonColors = mutableSetOf<String>()

    // Iterate through each color in colorSet1
    for (color in colorSet1) {
        // Check if the color starts with "less than" or contains the "OR" operator
        if (color.startsWith("<") || "OR" in color) {
            // Add the color to the commonColors set
            commonColors.add(color)
        }
    }

    return commonColors
}