/**
 * This function takes two lists and adds all the elements of list2 into list1.
 * The function should return the updated list1.
 * You need to complete the code by using built-in functions and basic loop syntax.
 *
 * Example:
 * insertValues(listOf(1, 2, 3), listOf(4, 5, 6)) should return [1, 2, 3, 4, 5, 6]
 */
fun insertValues(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    list1.addAll(list2)
    return list1
}
/**
 * This function takes two lists and adds all the elements of list2 into list1.
 * The function should return the updated list1.
 * You need to complete the code by using built-in functions and basic loop syntax.
 *
 * Example:
 * insertValues(listOf(1, 2, 3), listOf(4, 5, 6)) should return [1, 2, 3, 4, 5, 6]
 */
fun insertValues(list1: MutableList<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists and adds all the elements of list2 into list1.
 * The function should return the updated list1.
 * You need to complete the code by using built-in functions and basic loop syntax.
 *
 * Example:
 * insertValues(listOf(1, 2, 3), listOf(4, 5, 6)) should return [1, 2, 3, 4, 5, 6]
 */
fun insertValues(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    list1.addAll(list2)
    return list1
}