/**
 * This function finds the numbers greater than a given threshold in a list and returns them as a new list.
 *
 * @param numList A list containing numbers.
 * @param threshold The threshold value.
 * @return A list of numbers greater than the threshold.
 */
fun findGreaterNumbers(numList: List<Int>, threshold: Int): List<Int> {

    val greaterNumbers = mutableListOf<Int>()

    // Iterate over each number in the numList
    for (num in numList) {
        // Check if the number is greater than the threshold
        if (num > threshold) {
            // Append the number to the greaterNumbers list
            greaterNumbers.add(num)
        }
    }

    return greaterNumbers
}

// Example usage:
/**
 * This function finds the numbers greater than a given threshold in a list and returns them as a new list.
 *
 * @param numList A list containing numbers.
 * @param threshold The threshold value.
 * @return A list of numbers greater than the threshold.
 */
fun findGreaterNumbers(numList: List<Int>, threshold: Int): List<Int> {
/**
 * This function finds the numbers greater than a given threshold in a list and returns them as a new list.
 *
 * @param numList A list containing numbers.
 * @param threshold The threshold value.
 * @return A list of numbers greater than the threshold.
 */
fun findGreaterNumbers(numList: List<Int>, threshold: Int): List<Int> {

    val greaterNumbers = mutableListOf<Int>()

    // Iterate over each number in the numList
    for (num in numList) {
        // Check if the number is greater than the threshold
        if (num > threshold) {
            // Append the number to the greaterNumbers list
            greaterNumbers.add(num)
        }
    }

    return greaterNumbers
}

// Example usage: