/**
 * Computes the intersection of two tuples using nested loops
 *
 * @param lst1 The first tuple
 * @param lst2 The second tuple
 * @return Intersection of the two tuples
 *
 * Examples:
 * intersectTuples(listOf(1, 2, 3), listOf(2, 3, 4)) // returns listOf(2, 3)
 */
fun intersectTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (item1 in lst1) {
        for (item2 in lst2) {
            if (item1 == item2) {
                intersection.add(item1)
            }
        }
    }

    return intersection
}
/**
 * Computes the intersection of two tuples using nested loops
 *
 * @param lst1 The first tuple
 * @param lst2 The second tuple
 * @return Intersection of the two tuples
 *
 * Examples:
 * intersectTuples(listOf(1, 2, 3), listOf(2, 3, 4)) // returns listOf(2, 3)
 */
fun intersectTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * Computes the intersection of two tuples using nested loops
 *
 * @param lst1 The first tuple
 * @param lst2 The second tuple
 * @return Intersection of the two tuples
 *
 * Examples:
 * intersectTuples(listOf(1, 2, 3), listOf(2, 3, 4)) // returns listOf(2, 3)
 */
fun intersectTuples(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (item1 in lst1) {
        for (item2 in lst2) {
            if (item1 == item2) {
                intersection.add(item1)
            }
        }
    }

    return intersection
}