/**
 * Given a condition, expr1, and expr2, determine the result of the ternary operator.
 *
 * @param condition The condition to evaluate.
 * @param expr1 The value returned if the condition is true.
 * @param expr2 The value returned if the condition is false.
 * @return The result of the ternary operator.
 *
 * Examples:
 * intersectCode(true, "Hello", "World") => "Hello"
 * intersectCode(false, 10, 20) => 20
 */
fun intersectCode(condition: Boolean, expr1: Any, expr2: Any): Any {

    return if (condition) expr1 else expr2
}

// Exercise 1:
/**
 * Given a condition, expr1, and expr2, determine the result of the ternary operator.
 *
 * @param condition The condition to evaluate.
 * @param expr1 The value returned if the condition is true.
 * @param expr2 The value returned if the condition is false.
 * @return The result of the ternary operator.
 *
 * Examples:
 * intersectCode(true, "Hello", "World") => "Hello"
 * intersectCode(false, 10, 20) => 20
 */
fun intersectCode(condition: Boolean, expr1: Any, expr2: Any): Any {
/**
 * Given a condition, expr1, and expr2, determine the result of the ternary operator.
 *
 * @param condition The condition to evaluate.
 * @param expr1 The value returned if the condition is true.
 * @param expr2 The value returned if the condition is false.
 * @return The result of the ternary operator.
 *
 * Examples:
 * intersectCode(true, "Hello", "World") => "Hello"
 * intersectCode(false, 10, 20) => 20
 */
fun intersectCode(condition: Boolean, expr1: Any, expr2: Any): Any {

    return if (condition) expr1 else expr2
}

// Exercise 1: