/**
 * This function takes two number lists and returns the intersection of the two lists.
 *
 * @param numberList1 The first number list.
 * @param numberList2 The second number list.
 * @return The intersection of the two number lists.
 */
fun intersectionOfNumberList(numberList1: List<Int>, numberList2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()
    for (num1 in numberList1) {
        for (num2 in numberList2) {
            if (num1 == num2 && num1 !in intersection) {
                intersection.add(num1)
            }
        }
    }
    return intersection
}
/**
 * This function takes two number lists and returns the intersection of the two lists.
 *
 * @param numberList1 The first number list.
 * @param numberList2 The second number list.
 * @return The intersection of the two number lists.
 */
fun intersectionOfNumberList(numberList1: List<Int>, numberList2: List<Int>): List<Int> {
/**
 * This function takes two number lists and returns the intersection of the two lists.
 *
 * @param numberList1 The first number list.
 * @param numberList2 The second number list.
 * @return The intersection of the two number lists.
 */
fun intersectionOfNumberList(numberList1: List<Int>, numberList2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()
    for (num1 in numberList1) {
        for (num2 in numberList2) {
            if (num1 == num2 && num1 !in intersection) {
                intersection.add(num1)
            }
        }
    }
    return intersection
}