/**
 * Given an input list, the function modifies the elements and creates a copy of the list.
 *
 * @param inputList A list of integers.
 * @return A Pair containing two lists:
 * - modifiedList: A new list with modified elements of the input list.
 * - copiedList: A new list containing the exact copy of the input list.
 */
fun modifyAndCopyList(inputList: List<Int>): Pair<List<Int>, List<Int>> {

    // Modify the elements of the inputList by multiplying each element by 2
    val modifiedList = inputList.map { it * 2 }

    // Create a copy of the inputList
    val copiedList = inputList.toList()

    return Pair(modifiedList, copiedList)
}
/**
 * Given an input list, the function modifies the elements and creates a copy of the list.
 *
 * @param inputList A list of integers.
 * @return A Pair containing two lists:
 * - modifiedList: A new list with modified elements of the input list.
 * - copiedList: A new list containing the exact copy of the input list.
 */
fun modifyAndCopyList(inputList: List<Int>): Pair<List<Int>, List<Int>> {
/**
 * Given an input list, the function modifies the elements and creates a copy of the list.
 *
 * @param inputList A list of integers.
 * @return A Pair containing two lists:
 * - modifiedList: A new list with modified elements of the input list.
 * - copiedList: A new list containing the exact copy of the input list.
 */
fun modifyAndCopyList(inputList: List<Int>): Pair<List<Int>, List<Int>> {

    // Modify the elements of the inputList by multiplying each element by 2
    val modifiedList = inputList.map { it * 2 }

    // Create a copy of the inputList
    val copiedList = inputList.toList()

    return Pair(modifiedList, copiedList)
}