/**
 * This function is used to append new elements to an existing list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list after appending the new elements.
 */
fun appendElements(elements: MutableList<Int>, newElements: List<Int>): List<Int> {

    // Append each new element to the original elements list
    elements.addAll(newElements)
    return elements
}
/**
 * This function is used to append new elements to an existing list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list after appending the new elements.
 */
fun appendElements(elements: MutableList<Int>, newElements: List<Int>): List<Int> {
/**
 * This function is used to append new elements to an existing list.
 *
 * @param elements The original list of elements.
 * @param newElements The new elements to be appended to the original list.
 * @return The updated list after appending the new elements.
 */
fun appendElements(elements: MutableList<Int>, newElements: List<Int>): List<Int> {

    // Append each new element to the original elements list
    elements.addAll(newElements)
    return elements
}