/**
 * This function takes in two lists of integers and returns a list containing the common elements between them.
 *
 * @param lst1 The first list of integers.
 * @param lst2 The second list of integers.
 * @return A list of integers that are present in both input lists.
 */
fun calculateIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    // Find the intersection of the two lists
    val intersection = lst1.toSet() intersect lst2.toSet()

    // Get the common elements in the same order as lst1
    return lst1.filter { it in intersection }
}
/**
 * This function takes in two lists of integers and returns a list containing the common elements between them.
 *
 * @param lst1 The first list of integers.
 * @param lst2 The second list of integers.
 * @return A list of integers that are present in both input lists.
 */
fun calculateIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {
/**
 * This function takes in two lists of integers and returns a list containing the common elements between them.
 *
 * @param lst1 The first list of integers.
 * @param lst2 The second list of integers.
 * @return A list of integers that are present in both input lists.
 */
fun calculateIntersection(lst1: List<Int>, lst2: List<Int>): List<Int> {

    // Find the intersection of the two lists
    val intersection = lst1.toSet() intersect lst2.toSet()

    // Get the common elements in the same order as lst1
    return lst1.filter { it in intersection }
}