/**
 * Given a list of news data, an index, and a new value, modify the element at the specified index of the list with the new value.
 *
 * @param newsData List of news data.
 * @param index Index of the element to modify.
 * @param newValue New value to replace the old element.
 * @return Modified list of news data.
 */
fun modifyList(newsData: MutableList<Any>, index: Int, newValue: Any): List<Any> {

    newsData[index] = newValue
    return newsData
}
/**
 * Given a list of news data, an index, and a new value, modify the element at the specified index of the list with the new value.
 *
 * @param newsData List of news data.
 * @param index Index of the element to modify.
 * @param newValue New value to replace the old element.
 * @return Modified list of news data.
 */
fun modifyList(newsData: MutableList<Any>, index: Int, newValue: Any): List<Any> {
/**
 * Given a list of news data, an index, and a new value, modify the element at the specified index of the list with the new value.
 *
 * @param newsData List of news data.
 * @param index Index of the element to modify.
 * @param newValue New value to replace the old element.
 * @return Modified list of news data.
 */
fun modifyList(newsData: MutableList<Any>, index: Int, newValue: Any): List<Any> {

    newsData[index] = newValue
    return newsData
}