/**
 * This function receives a journalist's name and a list of articles that the journalist has written.
 * It checks if the journalist's name is part of any of the articles using the 'in' operator.
 * The function also checks if the total number of negative integers found in the articles is greater than or equal to 3.
 * It returns True if both conditions are satisfied, otherwise, it returns False.
 */
fun checkIntersectInOperator(journalistName: String, journalistArticles: List<String>): Boolean {

    var negativeIntegersCount = 0

    for (article in journalistArticles) {
        if (journalistName in article) {
            negativeIntegersCount += article.count { !it.isDigit() }
        }
    }

    return negativeIntegersCount >= 3
}
/**
 * This function receives a journalist's name and a list of articles that the journalist has written.
 * It checks if the journalist's name is part of any of the articles using the 'in' operator.
 * The function also checks if the total number of negative integers found in the articles is greater than or equal to 3.
 * It returns True if both conditions are satisfied, otherwise, it returns False.
 */
fun checkIntersectInOperator(journalistName: String, journalistArticles: List<String>): Boolean {
/**
 * This function receives a journalist's name and a list of articles that the journalist has written.
 * It checks if the journalist's name is part of any of the articles using the 'in' operator.
 * The function also checks if the total number of negative integers found in the articles is greater than or equal to 3.
 * It returns True if both conditions are satisfied, otherwise, it returns False.
 */
fun checkIntersectInOperator(journalistName: String, journalistArticles: List<String>): Boolean {

    var negativeIntegersCount = 0

    for (article in journalistArticles) {
        if (journalistName in article) {
            negativeIntegersCount += article.count { !it.isDigit() }
        }
    }

    return negativeIntegersCount >= 3
}