/**
 * This exercise requires you to create a function that takes two lists as input and returns a modified tuple.
 * The function should modify the first list by adding the elements of the second list to it using a loop.
 * The modified list should then be converted to a tuple and returned. Think about all possible edge cases and
 * make sure your solution handles them correctly.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A tuple containing the modified elements from list1
 *
 * Example:
 * val list1 = mutableListOf(1, 2, 3)
 * val list2 = listOf(4, 5, 6)
 * createModifiedTuple(list1, list2) // Output: (1, 2, 3, 4, 5, 6)
 */
fun createModifiedTuple(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    list1.addAll(list2)
    return list1
}
/**
 * This exercise requires you to create a function that takes two lists as input and returns a modified tuple.
 * The function should modify the first list by adding the elements of the second list to it using a loop.
 * The modified list should then be converted to a tuple and returned. Think about all possible edge cases and
 * make sure your solution handles them correctly.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A tuple containing the modified elements from list1
 *
 * Example:
 * val list1 = mutableListOf(1, 2, 3)
 * val list2 = listOf(4, 5, 6)
 * createModifiedTuple(list1, list2) // Output: (1, 2, 3, 4, 5, 6)
 */
fun createModifiedTuple(list1: MutableList<Int>, list2: List<Int>): List<Int> {
/**
 * This exercise requires you to create a function that takes two lists as input and returns a modified tuple.
 * The function should modify the first list by adding the elements of the second list to it using a loop.
 * The modified list should then be converted to a tuple and returned. Think about all possible edge cases and
 * make sure your solution handles them correctly.
 *
 * @param list1 A list of elements
 * @param list2 Another list of elements
 * @return A tuple containing the modified elements from list1
 *
 * Example:
 * val list1 = mutableListOf(1, 2, 3)
 * val list2 = listOf(4, 5, 6)
 * createModifiedTuple(list1, list2) // Output: (1, 2, 3, 4, 5, 6)
 */
fun createModifiedTuple(list1: MutableList<Int>, list2: List<Int>): List<Int> {

    list1.addAll(list2)
    return list1
}