/**
 * As an astronomer, you need to create a nested for loop to append elements to a list.
 *
 * Given an outer list and an inner list, write a code snippet to append each element of the inner list to the outer list.
 *
 * It should return the updated outer list with all the elements from the inner list appended.
 *
 * Example:
 * ----------
 * outerList = [1, 2, 3]
 * innerList = [4, 5, 6]
 * Expected output: [1, 2, 3, 4, 5, 6]
 *
 * @param outerList The list to which the elements from the inner list should be appended.
 * @param innerList The list that contains elements to be appended to the outer list.
 * @return The updated outer list with all elements from the inner list appended.
 */
fun appendElements(outerList: MutableList<Int>, innerList: List<Int>): List<Int> {

    for (innerElement in innerList) {
        outerList.add(innerElement)
    }
    return outerList
}
/**
 * As an astronomer, you need to create a nested for loop to append elements to a list.
 *
 * Given an outer list and an inner list, write a code snippet to append each element of the inner list to the outer list.
 *
 * It should return the updated outer list with all the elements from the inner list appended.
 *
 * Example:
 * ----------
 * outerList = [1, 2, 3]
 * innerList = [4, 5, 6]
 * Expected output: [1, 2, 3, 4, 5, 6]
 *
 * @param outerList The list to which the elements from the inner list should be appended.
 * @param innerList The list that contains elements to be appended to the outer list.
 * @return The updated outer list with all elements from the inner list appended.
 */
fun appendElements(outerList: MutableList<Int>, innerList: List<Int>): List<Int> {
/**
 * As an astronomer, you need to create a nested for loop to append elements to a list.
 *
 * Given an outer list and an inner list, write a code snippet to append each element of the inner list to the outer list.
 *
 * It should return the updated outer list with all the elements from the inner list appended.
 *
 * Example:
 * ----------
 * outerList = [1, 2, 3]
 * innerList = [4, 5, 6]
 * Expected output: [1, 2, 3, 4, 5, 6]
 *
 * @param outerList The list to which the elements from the inner list should be appended.
 * @param innerList The list that contains elements to be appended to the outer list.
 * @return The updated outer list with all elements from the inner list appended.
 */
fun appendElements(outerList: MutableList<Int>, innerList: List<Int>): List<Int> {

    for (innerElement in innerList) {
        outerList.add(innerElement)
    }
    return outerList
}