/**
 * Given the headline and word count of an article,
 * check if the article quality is good or not.
 * The article quality is considered good if the headline
 * contains at least three words and the word count is above 1000.
 */
fun checkArticleQuality(headline: String, wordCount: Int): String {

    // Write a ternary operator with multiple conditions and OR operator
    val isGoodQuality = if (headline.split(" ").size >= 3 && wordCount > 1000) "Good Quality" else "Not Good Quality"
    
    return isGoodQuality
}
/**
 * Given the headline and word count of an article,
 * check if the article quality is good or not.
 * The article quality is considered good if the headline
 * contains at least three words and the word count is above 1000.
 */
fun checkArticleQuality(headline: String, wordCount: Int): String {
/**
 * Given the headline and word count of an article,
 * check if the article quality is good or not.
 * The article quality is considered good if the headline
 * contains at least three words and the word count is above 1000.
 */
fun checkArticleQuality(headline: String, wordCount: Int): String {

    // Write a ternary operator with multiple conditions and OR operator
    val isGoodQuality = if (headline.split(" ").size >= 3 && wordCount > 1000) "Good Quality" else "Not Good Quality"
    
    return isGoodQuality
}