/**
 * Given three articles, this function returns the title of the article that should be showcased on the front page based on certain conditions.
 */
fun findArticleTitle(article1: String, article2: String, article3: String): String {

    // Determine the conditions for selecting the article title
    // Condition 1: If the length of article1 is greater than 30 characters, or the length of article2 is greater than 50 characters, return the title of article2.
    // Condition 2: If the title of article3 starts with a vowel (a, e, i, o, u) and its length is less than 20 characters, return the title of article3.
    // Condition 3: If none of the above conditions are met, return the title of article1.

    val selectedTitle = if (article1.length > 30 || article2.length > 50) {
        article2
    } else if (article3.first().toLowerCase() in listOf('a', 'e', 'i', 'o', 'u') && article3.length < 20) {
        article3
    } else {
        article1
    }

    return selectedTitle
}
/**
 * Given three articles, this function returns the title of the article that should be showcased on the front page based on certain conditions.
 */
fun findArticleTitle(article1: String, article2: String, article3: String): String {
/**
 * Given three articles, this function returns the title of the article that should be showcased on the front page based on certain conditions.
 */
fun findArticleTitle(article1: String, article2: String, article3: String): String {

    // Determine the conditions for selecting the article title
    // Condition 1: If the length of article1 is greater than 30 characters, or the length of article2 is greater than 50 characters, return the title of article2.
    // Condition 2: If the title of article3 starts with a vowel (a, e, i, o, u) and its length is less than 20 characters, return the title of article3.
    // Condition 3: If none of the above conditions are met, return the title of article1.

    val selectedTitle = if (article1.length > 30 || article2.length > 50) {
        article2
    } else if (article3.first().toLowerCase() in listOf('a', 'e', 'i', 'o', 'u') && article3.length < 20) {
        article3
    } else {
        article1
    }

    return selectedTitle
}