/**
 * This function takes a list of numbers as input and returns a new list
 * containing the numbers that are greater than the selected number.
 *
 * @param data A list of numbers
 * @param selection The selected number
 * @return A new list containing numbers that are greater than the selected number
 *
 * Example:
 * findGreaterThanSelection(listOf(1, 5, 3, 7, 2, 9, 4), 3) // [5, 7, 9]
 * findGreaterThanSelection(listOf(10, 20, 30, 40, 50), 25) // [30, 40, 50]
 */
fun findGreaterThanSelection(data: List<Int>, selection: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    for (num in data) {
        if (num > selection) {
            result.add(num)
        }
    }
    
    return result
}
/**
 * This function takes a list of numbers as input and returns a new list
 * containing the numbers that are greater than the selected number.
 *
 * @param data A list of numbers
 * @param selection The selected number
 * @return A new list containing numbers that are greater than the selected number
 *
 * Example:
 * findGreaterThanSelection(listOf(1, 5, 3, 7, 2, 9, 4), 3) // [5, 7, 9]
 * findGreaterThanSelection(listOf(10, 20, 30, 40, 50), 25) // [30, 40, 50]
 */
fun findGreaterThanSelection(data: List<Int>, selection: Int): List<Int> {
/**
 * This function takes a list of numbers as input and returns a new list
 * containing the numbers that are greater than the selected number.
 *
 * @param data A list of numbers
 * @param selection The selected number
 * @return A new list containing numbers that are greater than the selected number
 *
 * Example:
 * findGreaterThanSelection(listOf(1, 5, 3, 7, 2, 9, 4), 3) // [5, 7, 9]
 * findGreaterThanSelection(listOf(10, 20, 30, 40, 50), 25) // [30, 40, 50]
 */
fun findGreaterThanSelection(data: List<Int>, selection: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    for (num in data) {
        if (num > selection) {
            result.add(num)
        }
    }
    
    return result
}