/**
 * This exercise requires you to find the common elements between two lists and identify the elements that are greater than or equal to a given threshold.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements.
 * @param threshold The threshold value to compare against.
 * @return A new list containing the common elements that are greater than or equal to a given threshold.
 *
 * Example:
 * listIntersectionGreaterEqual(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8), 4) -> [4, 5]
 * listIntersectionGreaterEqual(listOf(9, 8, 7, 6), listOf(1, 2, 3, 4, 5), 5) -> []
 */
fun listIntersectionGreaterEqual(lst1: List<Int>, lst2: List<Int>, threshold: Int): List<Int> {

    val commonElements = lst1.filter { it in lst2 }
    return commonElements.filter { it >= threshold }
}
/**
 * This exercise requires you to find the common elements between two lists and identify the elements that are greater than or equal to a given threshold.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements.
 * @param threshold The threshold value to compare against.
 * @return A new list containing the common elements that are greater than or equal to a given threshold.
 *
 * Example:
 * listIntersectionGreaterEqual(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8), 4) -> [4, 5]
 * listIntersectionGreaterEqual(listOf(9, 8, 7, 6), listOf(1, 2, 3, 4, 5), 5) -> []
 */
fun listIntersectionGreaterEqual(lst1: List<Int>, lst2: List<Int>, threshold: Int): List<Int> {
/**
 * This exercise requires you to find the common elements between two lists and identify the elements that are greater than or equal to a given threshold.
 *
 * @param lst1 The first list of elements.
 * @param lst2 The second list of elements.
 * @param threshold The threshold value to compare against.
 * @return A new list containing the common elements that are greater than or equal to a given threshold.
 *
 * Example:
 * listIntersectionGreaterEqual(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8), 4) -> [4, 5]
 * listIntersectionGreaterEqual(listOf(9, 8, 7, 6), listOf(1, 2, 3, 4, 5), 5) -> []
 */
fun listIntersectionGreaterEqual(lst1: List<Int>, lst2: List<Int>, threshold: Int): List<Int> {

    val commonElements = lst1.filter { it in lst2 }
    return commonElements.filter { it >= threshold }
}