/**
 * This function takes in a list of articles and a search term as arguments.
 * It returns a list of articles that contain the search term in their content.
 * Please complete the code to solve the exercise.
 */
fun findArticles(articles: List<Map<String, String>>, searchTerm: String): List<Map<String, String>> {

    // Create an empty list to store the matching articles
    val matchingArticles = mutableListOf<Map<String, String>>()

    // Iterate over each article in the given list
    for (article in articles) {
        // Check if the article's content contains the search term
        if (article["content"]?.contains(searchTerm) == true) {
            // If it does, add the article to the matchingArticles list
            matchingArticles.add(article)
        }
    }

    // Return the list of matching articles
    return matchingArticles
}
/**
 * This function takes in a list of articles and a search term as arguments.
 * It returns a list of articles that contain the search term in their content.
 * Please complete the code to solve the exercise.
 */
fun findArticles(articles: List<Map<String, String>>, searchTerm: String): List<Map<String, String>> {
/**
 * This function takes in a list of articles and a search term as arguments.
 * It returns a list of articles that contain the search term in their content.
 * Please complete the code to solve the exercise.
 */
fun findArticles(articles: List<Map<String, String>>, searchTerm: String): List<Map<String, String>> {

    // Create an empty list to store the matching articles
    val matchingArticles = mutableListOf<Map<String, String>>()

    // Iterate over each article in the given list
    for (article in articles) {
        // Check if the article's content contains the search term
        if (article["content"]?.contains(searchTerm) == true) {
            // If it does, add the article to the matchingArticles list
            matchingArticles.add(article)
        }
    }

    // Return the list of matching articles
    return matchingArticles
}