/**
 * This function finds the indices where the elements of two lists intersect.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return A list containing indices where the elements of the two lists intersect.
 */
fun intersectIndices(lst1: List<Any>, lst2: List<Any>): List<Int> {

    val intersectionIndices = mutableListOf<Int>()
    
    // Iterate over each element in lst1
    for (i in lst1.indices) {
        // Iterate over each element in lst2
        for (j in lst2.indices) {
            // Check if the elements are equal
            if (lst1[i] == lst2[j]) {
                // Append the index to the intersectionIndices list
                intersectionIndices.add(i)
            }
        }
    }
    
    return intersectionIndices
}
/**
 * This function finds the indices where the elements of two lists intersect.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return A list containing indices where the elements of the two lists intersect.
 */
fun intersectIndices(lst1: List<Any>, lst2: List<Any>): List<Int> {
/**
 * This function finds the indices where the elements of two lists intersect.
 *
 * @param lst1 The first list.
 * @param lst2 The second list.
 * @return A list containing indices where the elements of the two lists intersect.
 */
fun intersectIndices(lst1: List<Any>, lst2: List<Any>): List<Int> {

    val intersectionIndices = mutableListOf<Int>()
    
    // Iterate over each element in lst1
    for (i in lst1.indices) {
        // Iterate over each element in lst2
        for (j in lst2.indices) {
            // Check if the elements are equal
            if (lst1[i] == lst2[j]) {
                // Append the index to the intersectionIndices list
                intersectionIndices.add(i)
            }
        }
    }
    
    return intersectionIndices
}