/**
 * This function checks for intersections between two shapes.
 *
 * @param shape1 The first shape, which can be "rectangle", "circle", or "triangle".
 * @param shape2 The second shape, which can be "rectangle", "circle", or "triangle".
 * @return The result message indicating if there is an intersection or not.
 */
fun checkShapeIntersections(shape1: String, shape2: String): String {

    return when {
        shape1 == "rectangle" && shape2 == "rectangle" -> "Intersection: Rectangle with rectangle"
        shape1 == "rectangle" && shape2 == "circle" -> "Intersection: Rectangle with circle"
        shape1 == "rectangle" && shape2 == "triangle" -> "Intersection: Rectangle with triangle"
        shape1 == "circle" && shape2 == "rectangle" -> "Intersection: Circle with rectangle"
        shape1 == "circle" && shape2 == "circle" -> "Intersection: Circle with circle"
        shape1 == "circle" && shape2 == "triangle" -> "Intersection: Circle with triangle"
        else -> ""
    }
}
/**
 * This function checks for intersections between two shapes.
 *
 * @param shape1 The first shape, which can be "rectangle", "circle", or "triangle".
 * @param shape2 The second shape, which can be "rectangle", "circle", or "triangle".
 * @return The result message indicating if there is an intersection or not.
 */
fun checkShapeIntersections(shape1: String, shape2: String): String {
/**
 * This function checks for intersections between two shapes.
 *
 * @param shape1 The first shape, which can be "rectangle", "circle", or "triangle".
 * @param shape2 The second shape, which can be "rectangle", "circle", or "triangle".
 * @return The result message indicating if there is an intersection or not.
 */
fun checkShapeIntersections(shape1: String, shape2: String): String {

    return when {
        shape1 == "rectangle" && shape2 == "rectangle" -> "Intersection: Rectangle with rectangle"
        shape1 == "rectangle" && shape2 == "circle" -> "Intersection: Rectangle with circle"
        shape1 == "rectangle" && shape2 == "triangle" -> "Intersection: Rectangle with triangle"
        shape1 == "circle" && shape2 == "rectangle" -> "Intersection: Circle with rectangle"
        shape1 == "circle" && shape2 == "circle" -> "Intersection: Circle with circle"
        shape1 == "circle" && shape2 == "triangle" -> "Intersection: Circle with triangle"
        else -> ""
    }
}