/**
 * Appends new elements to an existing list.
 *
 * Takes a list 'lst' and a list of 'elements' to be appended to it.
 *
 * @param lst The original list.
 * @param elements The list of elements to be appended.
 * @return The modified list after appending the new elements.
 */
fun appendElements(lst: MutableList<Any>, elements: List<Any>): MutableList<Any> {

    for (element in elements) {
        if (element !in lst) {
            lst.add(element)
        }
    }
    return lst
}
/**
 * Appends new elements to an existing list.
 *
 * Takes a list 'lst' and a list of 'elements' to be appended to it.
 *
 * @param lst The original list.
 * @param elements The list of elements to be appended.
 * @return The modified list after appending the new elements.
 */
fun appendElements(lst: MutableList<Any>, elements: List<Any>): MutableList<Any> {
/**
 * Appends new elements to an existing list.
 *
 * Takes a list 'lst' and a list of 'elements' to be appended to it.
 *
 * @param lst The original list.
 * @param elements The list of elements to be appended.
 * @return The modified list after appending the new elements.
 */
fun appendElements(lst: MutableList<Any>, elements: List<Any>): MutableList<Any> {

    for (element in elements) {
        if (element !in lst) {
            lst.add(element)
        }
    }
    return lst
}