/**
 * Remove duplicate elements from lst1 and modify lst2 by squaring all elements.
 *
 * @param lst1 The first input list.
 * @param lst2 The second input list.
 * @return A tuple containing the modified lst1 and lst2.
 */
fun removeDuplicatesAndModify(lst1: MutableList<Int>, lst2: MutableList<Int>): Pair<List<Int>, List<Int>> {

    val uniqueList1 = lst1.toSet().toList()
    modifyList(lst2)
    return Pair(uniqueList1, lst2)
}

fun modifyList(lst: MutableList<Int>) {
    for (i in 0 until lst.size) {
        lst[i] = lst[i] * lst[i]
    }
}
/**
 * Remove duplicate elements from lst1 and modify lst2 by squaring all elements.
 *
 * @param lst1 The first input list.
 * @param lst2 The second input list.
 * @return A tuple containing the modified lst1 and lst2.
 */
fun removeDuplicatesAndModify(lst1: MutableList<Int>, lst2: MutableList<Int>): Pair<List<Int>, List<Int>> {
/**
 * Remove duplicate elements from lst1 and modify lst2 by squaring all elements.
 *
 * @param lst1 The first input list.
 * @param lst2 The second input list.
 * @return A tuple containing the modified lst1 and lst2.
 */
fun removeDuplicatesAndModify(lst1: MutableList<Int>, lst2: MutableList<Int>): Pair<List<Int>, List<Int>> {

    val uniqueList1 = lst1.toSet().toList()
    modifyList(lst2)
    return Pair(uniqueList1, lst2)
}

fun modifyList(lst: MutableList<Int>) {
    for (i in 0 until lst.size) {
        lst[i] = lst[i] * lst[i]
    }
}