/**
 * As a psychologist, you need to evaluate the mental state of a patient based on their responses to certain questions.
 * This exercise focuses on the precedence of logical operators, which will help you determine the outcome.
 *
 * Your task is to complete the function 'logicalExpression' that takes three parameters:
 * - 'interestCheck' (Boolean): Represents whether the patient is showing interest in their surroundings or not.
 * - 'anxietyCheck' (Boolean): Represents whether the patient is experiencing anxiety or not.
 * - 'stressCheck' (Boolean): Represents whether the patient is under stress or not.
 *
 * Your goal is to create a logical expression using these parameters with specific precedence operators that will
 * help determine the patient's mental state. Use parentheses to group the conditions accurately.
 *
 * For example, if interestCheck is true, anxietyCheck is false, and stressCheck is true, the expected output
 * should be true. However, keep in mind that integration of precedence operators will make it difficult to solve.
 *
 * Your task is to return the result of the logical expression. Good luck!
 */
fun logicalExpression(interestCheck: Boolean, anxietyCheck: Boolean, stressCheck: Boolean): Boolean {

    return interestCheck || (!anxietyCheck && stressCheck)
}
/**
 * As a psychologist, you need to evaluate the mental state of a patient based on their responses to certain questions.
 * This exercise focuses on the precedence of logical operators, which will help you determine the outcome.
 *
 * Your task is to complete the function 'logicalExpression' that takes three parameters:
 * - 'interestCheck' (Boolean): Represents whether the patient is showing interest in their surroundings or not.
 * - 'anxietyCheck' (Boolean): Represents whether the patient is experiencing anxiety or not.
 * - 'stressCheck' (Boolean): Represents whether the patient is under stress or not.
 *
 * Your goal is to create a logical expression using these parameters with specific precedence operators that will
 * help determine the patient's mental state. Use parentheses to group the conditions accurately.
 *
 * For example, if interestCheck is true, anxietyCheck is false, and stressCheck is true, the expected output
 * should be true. However, keep in mind that integration of precedence operators will make it difficult to solve.
 *
 * Your task is to return the result of the logical expression. Good luck!
 */
fun logicalExpression(interestCheck: Boolean, anxietyCheck: Boolean, stressCheck: Boolean): Boolean {
/**
 * As a psychologist, you need to evaluate the mental state of a patient based on their responses to certain questions.
 * This exercise focuses on the precedence of logical operators, which will help you determine the outcome.
 *
 * Your task is to complete the function 'logicalExpression' that takes three parameters:
 * - 'interestCheck' (Boolean): Represents whether the patient is showing interest in their surroundings or not.
 * - 'anxietyCheck' (Boolean): Represents whether the patient is experiencing anxiety or not.
 * - 'stressCheck' (Boolean): Represents whether the patient is under stress or not.
 *
 * Your goal is to create a logical expression using these parameters with specific precedence operators that will
 * help determine the patient's mental state. Use parentheses to group the conditions accurately.
 *
 * For example, if interestCheck is true, anxietyCheck is false, and stressCheck is true, the expected output
 * should be true. However, keep in mind that integration of precedence operators will make it difficult to solve.
 *
 * Your task is to return the result of the logical expression. Good luck!
 */
fun logicalExpression(interestCheck: Boolean, anxietyCheck: Boolean, stressCheck: Boolean): Boolean {

    return interestCheck || (!anxietyCheck && stressCheck)
}