/**
 * This exercise requires you to write a function that counts the number of times an element in lst1 occurs in the nested lists of lst2.
 * The function should return the total count.
 */
fun countLoopIntersection(lst1: List<Any>, lst2: List<List<Any>>): Int {

    var count = 0
    for (i in lst1) {
        for (j in lst2) {
            for (k in j) {
                if (i == k) {
                    count++
                }
            }
        }
    }
    return count
}
/**
 * This exercise requires you to write a function that counts the number of times an element in lst1 occurs in the nested lists of lst2.
 * The function should return the total count.
 */
fun countLoopIntersection(lst1: List<Any>, lst2: List<List<Any>>): Int {
/**
 * This exercise requires you to write a function that counts the number of times an element in lst1 occurs in the nested lists of lst2.
 * The function should return the total count.
 */
fun countLoopIntersection(lst1: List<Any>, lst2: List<List<Any>>): Int {

    var count = 0
    for (i in lst1) {
        for (j in lst2) {
            for (k in j) {
                if (i == k) {
                    count++
                }
            }
        }
    }
    return count
}