/**
 * This function checks if an intersection exists between the given set and the other data structure.
 *
 * @param setInput The set to check for intersection.
 * @param otherDataStructure The other data structure to check for intersection.
 * @return If intersection exists, returns "Intersection exists". Otherwise, returns "No intersection found".
 */
fun checkIfIntersectionExists(setInput: Set<*>, otherDataStructure: Any): String {

    val intersection = setInput.intersect(otherDataStructure as Set<*>)
    return if (intersection.isNotEmpty()) {
        "Intersection exists"
    } else {
        "No intersection found"
    }
}
/**
 * This function checks if an intersection exists between the given set and the other data structure.
 *
 * @param setInput The set to check for intersection.
 * @param otherDataStructure The other data structure to check for intersection.
 * @return If intersection exists, returns "Intersection exists". Otherwise, returns "No intersection found".
 */
fun checkIfIntersectionExists(setInput: Set<*>, otherDataStructure: Any): String {
/**
 * This function checks if an intersection exists between the given set and the other data structure.
 *
 * @param setInput The set to check for intersection.
 * @param otherDataStructure The other data structure to check for intersection.
 * @return If intersection exists, returns "Intersection exists". Otherwise, returns "No intersection found".
 */
fun checkIfIntersectionExists(setInput: Set<*>, otherDataStructure: Any): String {

    val intersection = setInput.intersect(otherDataStructure as Set<*>)
    return if (intersection.isNotEmpty()) {
        "Intersection exists"
    } else {
        "No intersection found"
    }
}