/**
 * Given two lists of integers, find the intersection of the lists using the AND operator and the enumerate function.
 *
 * @param lst1 List of integers
 * @param lst2 List of integers
 * @return List of integers representing the intersection of the two input lists
 *
 * Example:
 * intersectionAndEnumerate(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6)) => [4, 5]
 */
fun intersectionAndEnumerate(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for ((index1, num1) in lst1.withIndex()) {
        for ((index2, num2) in lst2.withIndex()) {
            if (num1 == num2 && index1 == index2) {
                intersection.add(num1)
            }
        }
    }

    return intersection
}
/**
 * Given two lists of integers, find the intersection of the lists using the AND operator and the enumerate function.
 *
 * @param lst1 List of integers
 * @param lst2 List of integers
 * @return List of integers representing the intersection of the two input lists
 *
 * Example:
 * intersectionAndEnumerate(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6)) => [4, 5]
 */
fun intersectionAndEnumerate(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * Given two lists of integers, find the intersection of the lists using the AND operator and the enumerate function.
 *
 * @param lst1 List of integers
 * @param lst2 List of integers
 * @return List of integers representing the intersection of the two input lists
 *
 * Example:
 * intersectionAndEnumerate(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6)) => [4, 5]
 */
fun intersectionAndEnumerate(lst1: List<Int>, lst2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for ((index1, num1) in lst1.withIndex()) {
        for ((index2, num2) in lst2.withIndex()) {
            if (num1 == num2 && index1 == index2) {
                intersection.add(num1)
            }
        }
    }

    return intersection
}