/**
 * Given a list of integers [lst] and a number [n], return a new list containing only the elements greater than [n].
 *
 * Examples:
 * findLargerElements(listOf(1, 2, 3, 4, 5), 3) => [4, 5]
 * findLargerElements(listOf(10, 20, 30, 40), 25) => [30, 40]
 * findLargerElements(listOf(-1, -2, -3, -4), -2) => [-1]
 * findLargerElements(listOf(5, 7, 11, 13, 17), 20) => []
 *
 * @param lst A list of integers.
 * @param n An integer to compare against.
 * @return A new list containing integers greater than [n].
 */
fun findLargerElements(lst: List<Int>, n: Int): List<Int> {

    val largerElements = mutableListOf<Int>()
    for (element in lst) {
        if (element > n) {
            largerElements.add(element)
        }
    }
    return largerElements
}
/**
 * Given a list of integers [lst] and a number [n], return a new list containing only the elements greater than [n].
 *
 * Examples:
 * findLargerElements(listOf(1, 2, 3, 4, 5), 3) => [4, 5]
 * findLargerElements(listOf(10, 20, 30, 40), 25) => [30, 40]
 * findLargerElements(listOf(-1, -2, -3, -4), -2) => [-1]
 * findLargerElements(listOf(5, 7, 11, 13, 17), 20) => []
 *
 * @param lst A list of integers.
 * @param n An integer to compare against.
 * @return A new list containing integers greater than [n].
 */
fun findLargerElements(lst: List<Int>, n: Int): List<Int> {
/**
 * Given a list of integers [lst] and a number [n], return a new list containing only the elements greater than [n].
 *
 * Examples:
 * findLargerElements(listOf(1, 2, 3, 4, 5), 3) => [4, 5]
 * findLargerElements(listOf(10, 20, 30, 40), 25) => [30, 40]
 * findLargerElements(listOf(-1, -2, -3, -4), -2) => [-1]
 * findLargerElements(listOf(5, 7, 11, 13, 17), 20) => []
 *
 * @param lst A list of integers.
 * @param n An integer to compare against.
 * @return A new list containing integers greater than [n].
 */
fun findLargerElements(lst: List<Int>, n: Int): List<Int> {

    val largerElements = mutableListOf<Int>()
    for (element in lst) {
        if (element > n) {
            largerElements.add(element)
        }
    }
    return largerElements
}