/**
 * This exercise aims to test your understanding of the 'not in' operator and the difference between inclusive and exclusive range.
 * Your task is to write a function that takes in a list of patient emotions and returns a list of emotions that are neither positive nor negative.
 *
 * @param psychotherapist A string representing the name of the psychologist.
 * @param patientEmotions A list of strings representing the emotions experienced by the patient.
 * @return A list of emotions that are neither positive nor negative.
 */
fun intersectionOfNotInOperatorAndRange(psychotherapist: String, patientEmotions: List<String>): List<String> {

    // Exclude positive and negative emotions from the patientEmotions list
    val positiveEmotions = listOf("joy", "happiness", "excitement", "love")
    val negativeEmotions = listOf("sadness", "anger", "fear", "disgust", "anxiety")

    val filteredEmotions = mutableListOf<String>()

    for (emotion in patientEmotions) {
        if (emotion !in positiveEmotions && emotion !in negativeEmotions) {
            filteredEmotions.add(emotion)
        }
    }

    return filteredEmotions
}
/**
 * This exercise aims to test your understanding of the 'not in' operator and the difference between inclusive and exclusive range.
 * Your task is to write a function that takes in a list of patient emotions and returns a list of emotions that are neither positive nor negative.
 *
 * @param psychotherapist A string representing the name of the psychologist.
 * @param patientEmotions A list of strings representing the emotions experienced by the patient.
 * @return A list of emotions that are neither positive nor negative.
 */
fun intersectionOfNotInOperatorAndRange(psychotherapist: String, patientEmotions: List<String>): List<String> {
/**
 * This exercise aims to test your understanding of the 'not in' operator and the difference between inclusive and exclusive range.
 * Your task is to write a function that takes in a list of patient emotions and returns a list of emotions that are neither positive nor negative.
 *
 * @param psychotherapist A string representing the name of the psychologist.
 * @param patientEmotions A list of strings representing the emotions experienced by the patient.
 * @return A list of emotions that are neither positive nor negative.
 */
fun intersectionOfNotInOperatorAndRange(psychotherapist: String, patientEmotions: List<String>): List<String> {

    // Exclude positive and negative emotions from the patientEmotions list
    val positiveEmotions = listOf("joy", "happiness", "excitement", "love")
    val negativeEmotions = listOf("sadness", "anger", "fear", "disgust", "anxiety")

    val filteredEmotions = mutableListOf<String>()

    for (emotion in patientEmotions) {
        if (emotion !in positiveEmotions && emotion !in negativeEmotions) {
            filteredEmotions.add(emotion)
        }
    }

    return filteredEmotions
}