/**
 * This function analyzes the personality profile of an individual.
 * It returns a list containing the number of positive, negative, and neutral traits.
 *
 * @param personalityProfile A dictionary containing the personality traits of an individual.
 *                           The keys represent the trait names, and the values represent the trait values.
 *                           The trait values can be 'positive', 'negative', or 'neutral'.
 * @return A list containing the count of positive, negative, and neutral traits, respectively.
 */
fun analyzePersonalityTraits(personalityProfile: Map<String, String?>): List<Int> {

    var positiveTraits = 0
    var negativeTraits = 0
    var neutralTraits = 0

    for ((_, value) in personalityProfile) {
        when (value) {
            null -> continue
            "positive" -> positiveTraits++
            "negative" -> negativeTraits++
            "neutral" -> neutralTraits++
        }
    }

    return listOf(positiveTraits, negativeTraits, neutralTraits)
}
/**
 * This function analyzes the personality profile of an individual.
 * It returns a list containing the number of positive, negative, and neutral traits.
 *
 * @param personalityProfile A dictionary containing the personality traits of an individual.
 *                           The keys represent the trait names, and the values represent the trait values.
 *                           The trait values can be 'positive', 'negative', or 'neutral'.
 * @return A list containing the count of positive, negative, and neutral traits, respectively.
 */
fun analyzePersonalityTraits(personalityProfile: Map<String, String?>): List<Int> {
/**
 * This function analyzes the personality profile of an individual.
 * It returns a list containing the number of positive, negative, and neutral traits.
 *
 * @param personalityProfile A dictionary containing the personality traits of an individual.
 *                           The keys represent the trait names, and the values represent the trait values.
 *                           The trait values can be 'positive', 'negative', or 'neutral'.
 * @return A list containing the count of positive, negative, and neutral traits, respectively.
 */
fun analyzePersonalityTraits(personalityProfile: Map<String, String?>): List<Int> {

    var positiveTraits = 0
    var negativeTraits = 0
    var neutralTraits = 0

    for ((_, value) in personalityProfile) {
        when (value) {
            null -> continue
            "positive" -> positiveTraits++
            "negative" -> negativeTraits++
            "neutral" -> neutralTraits++
        }
    }

    return listOf(positiveTraits, negativeTraits, neutralTraits)
}