/**
 * Given a dictionary representing an article, this function returns the title, publication date,
 * and number of views by accessing the values in the dictionary.
 *
 * @param articleDict A dictionary containing information about an article.
 * @return A tuple containing the title (String), publication date (String), and number of views (Int).
 *
 * Example:
 * getArticleInfo(mapOf("title" to "Breaking News", "date" to "2022-05-15", "views" to 1000))
 * Output: Triple("Breaking News", "2022-05-15", 1000)
 */
fun getArticleInfo(articleDict: Map<String, Any>): Triple<String, String, Int> {

    val title = articleDict["title"] as String
    val date = articleDict["date"] as String
    val views = articleDict["views"] as Int
    return Triple(title, date, views)
}
/**
 * Given a dictionary representing an article, this function returns the title, publication date,
 * and number of views by accessing the values in the dictionary.
 *
 * @param articleDict A dictionary containing information about an article.
 * @return A tuple containing the title (String), publication date (String), and number of views (Int).
 *
 * Example:
 * getArticleInfo(mapOf("title" to "Breaking News", "date" to "2022-05-15", "views" to 1000))
 * Output: Triple("Breaking News", "2022-05-15", 1000)
 */
fun getArticleInfo(articleDict: Map<String, Any>): Triple<String, String, Int> {
/**
 * Given a dictionary representing an article, this function returns the title, publication date,
 * and number of views by accessing the values in the dictionary.
 *
 * @param articleDict A dictionary containing information about an article.
 * @return A tuple containing the title (String), publication date (String), and number of views (Int).
 *
 * Example:
 * getArticleInfo(mapOf("title" to "Breaking News", "date" to "2022-05-15", "views" to 1000))
 * Output: Triple("Breaking News", "2022-05-15", 1000)
 */
fun getArticleInfo(articleDict: Map<String, Any>): Triple<String, String, Int> {

    val title = articleDict["title"] as String
    val date = articleDict["date"] as String
    val views = articleDict["views"] as Int
    return Triple(title, date, views)
}