/**
 * This function takes a list of articles and a list of search terms,
 * and returns a list of articles that contain the search terms.
 *
 * @param articleList A list of articles.
 * @param searchTerms A list of search terms.
 * @return A list of articles that contain the search terms.
 */
fun findRelevantArticles(articleList: List<String>, searchTerms: List<String>): List<String> {

    val relevantArticles = mutableListOf<String>()

    for (article in articleList) {
        if (searchTerms.all { term -> article.contains(term) }) {
            relevantArticles.add(article)
        }
    }

    return relevantArticles
}
/**
 * This function takes a list of articles and a list of search terms,
 * and returns a list of articles that contain the search terms.
 *
 * @param articleList A list of articles.
 * @param searchTerms A list of search terms.
 * @return A list of articles that contain the search terms.
 */
fun findRelevantArticles(articleList: List<String>, searchTerms: List<String>): List<String> {
/**
 * This function takes a list of articles and a list of search terms,
 * and returns a list of articles that contain the search terms.
 *
 * @param articleList A list of articles.
 * @param searchTerms A list of search terms.
 * @return A list of articles that contain the search terms.
 */
fun findRelevantArticles(articleList: List<String>, searchTerms: List<String>): List<String> {

    val relevantArticles = mutableListOf<String>()

    for (article in articleList) {
        if (searchTerms.all { term -> article.contains(term) }) {
            relevantArticles.add(article)
        }
    }

    return relevantArticles
}