/**
 * This function takes two lists as input and returns their intersection.
 */
fun intersectLists(list1: List<Int>, list2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (i in list1) {
        if (i in list2) {
            intersection.add(i)
        }
    }

    return intersection
}
/**
 * This function takes two lists as input and returns their intersection.
 */
fun intersectLists(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists as input and returns their intersection.
 */
fun intersectLists(list1: List<Int>, list2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (i in list1) {
        if (i in list2) {
            intersection.add(i)
        }
    }

    return intersection
}