/**
 * This function calculates the score of a social worker based on their positive
 * interactions and negative interactions.
 *
 * Positive interactions are valued at 10 points each, and negative interactions
 * are valued at -5 points each.
 *
 * The function should subtract the negative interactions score from the positive
 * interactions score. However, if the negative interactions score is larger than
 * or equal to three times the positive interactions score, the function should
 * return -1 as an indicator that the social worker's score is invalid.
 *
 * @param positiveInteractions The number of positive interactions.
 * @param negativeInteractions The number of negative interactions.
 * @return The score of the social worker.
 */
fun calculateScore(positiveInteractions: Int, negativeInteractions: Int): Int {

    val score = positiveInteractions * 10 - negativeInteractions * 5
    return if (negativeInteractions >= 3 * positiveInteractions) -1 else score
}
/**
 * This function calculates the score of a social worker based on their positive
 * interactions and negative interactions.
 *
 * Positive interactions are valued at 10 points each, and negative interactions
 * are valued at -5 points each.
 *
 * The function should subtract the negative interactions score from the positive
 * interactions score. However, if the negative interactions score is larger than
 * or equal to three times the positive interactions score, the function should
 * return -1 as an indicator that the social worker's score is invalid.
 *
 * @param positiveInteractions The number of positive interactions.
 * @param negativeInteractions The number of negative interactions.
 * @return The score of the social worker.
 */
fun calculateScore(positiveInteractions: Int, negativeInteractions: Int): Int {
/**
 * This function calculates the score of a social worker based on their positive
 * interactions and negative interactions.
 *
 * Positive interactions are valued at 10 points each, and negative interactions
 * are valued at -5 points each.
 *
 * The function should subtract the negative interactions score from the positive
 * interactions score. However, if the negative interactions score is larger than
 * or equal to three times the positive interactions score, the function should
 * return -1 as an indicator that the social worker's score is invalid.
 *
 * @param positiveInteractions The number of positive interactions.
 * @param negativeInteractions The number of negative interactions.
 * @return The score of the social worker.
 */
fun calculateScore(positiveInteractions: Int, negativeInteractions: Int): Int {

    val score = positiveInteractions * 10 - negativeInteractions * 5
    return if (negativeInteractions >= 3 * positiveInteractions) -1 else score
}