/**
 * This function takes in the name of a journalist and a number of articles to create, and returns a list of article titles
 * starting with the journalist's name and then a number.
 *
 * @param journalistName The name of the journalist.
 * @param numArticles The number of articles to create.
 * @return A list of article titles.
 *
 * Example:
 * createArticleTitles("John Doe", 3) returns ['John Doe 1', 'John Doe 2', 'John Doe 3']
 */
fun createArticleTitles(journalistName: String, numArticles: Int): List<String> {

    val articleTitles = mutableListOf<String>()
    for (i in 1..numArticles) {
        articleTitles.add("$journalistName $i")
    }
    return articleTitles
}
/**
 * This function takes in the name of a journalist and a number of articles to create, and returns a list of article titles
 * starting with the journalist's name and then a number.
 *
 * @param journalistName The name of the journalist.
 * @param numArticles The number of articles to create.
 * @return A list of article titles.
 *
 * Example:
 * createArticleTitles("John Doe", 3) returns ['John Doe 1', 'John Doe 2', 'John Doe 3']
 */
fun createArticleTitles(journalistName: String, numArticles: Int): List<String> {
/**
 * This function takes in the name of a journalist and a number of articles to create, and returns a list of article titles
 * starting with the journalist's name and then a number.
 *
 * @param journalistName The name of the journalist.
 * @param numArticles The number of articles to create.
 * @return A list of article titles.
 *
 * Example:
 * createArticleTitles("John Doe", 3) returns ['John Doe 1', 'John Doe 2', 'John Doe 3']
 */
fun createArticleTitles(journalistName: String, numArticles: Int): List<String> {

    val articleTitles = mutableListOf<String>()
    for (i in 1..numArticles) {
        articleTitles.add("$journalistName $i")
    }
    return articleTitles
}