/**
 * This function takes a dictionary of emotional states and returns the maximum value.
 *
 * @param emotionalStatesDict a dictionary where the keys represent emotional states, and the values represent their intensity level
 * @return the emotional state with the highest intensity level
 */
fun findMaxEmotionalState(emotionalStatesDict: Map<String, Int>): String {

    var maxIntensity = -1
    var maxEmotionalState = ""

    for ((emotionalState, intensity) in emotionalStatesDict) {
        if (intensity > maxIntensity) {
            maxIntensity = intensity
            maxEmotionalState = emotionalState
        }
    }

    return maxEmotionalState
}
/**
 * This function takes a dictionary of emotional states and returns the maximum value.
 *
 * @param emotionalStatesDict a dictionary where the keys represent emotional states, and the values represent their intensity level
 * @return the emotional state with the highest intensity level
 */
fun findMaxEmotionalState(emotionalStatesDict: Map<String, Int>): String {
/**
 * This function takes a dictionary of emotional states and returns the maximum value.
 *
 * @param emotionalStatesDict a dictionary where the keys represent emotional states, and the values represent their intensity level
 * @return the emotional state with the highest intensity level
 */
fun findMaxEmotionalState(emotionalStatesDict: Map<String, Int>): String {

    var maxIntensity = -1
    var maxEmotionalState = ""

    for ((emotionalState, intensity) in emotionalStatesDict) {
        if (intensity > maxIntensity) {
            maxIntensity = intensity
            maxEmotionalState = emotionalState
        }
    }

    return maxEmotionalState
}