/**
 * Concatenates characters from each string in lst1 and appends them to lst2.
 * Returns the modified list.
 */
fun concatenateAndAppend(lst1: List<String>, lst2: MutableList<Char>): MutableList<Char> {

    for (string in lst1) {
        lst2.addAll(string.toList())
    }
    return lst2
}
/**
 * Concatenates characters from each string in lst1 and appends them to lst2.
 * Returns the modified list.
 */
fun concatenateAndAppend(lst1: List<String>, lst2: MutableList<Char>): MutableList<Char> {
/**
 * Concatenates characters from each string in lst1 and appends them to lst2.
 * Returns the modified list.
 */
fun concatenateAndAppend(lst1: List<String>, lst2: MutableList<Char>): MutableList<Char> {

    for (string in lst1) {
        lst2.addAll(string.toList())
    }
    return lst2
}