/**
 * Given a list of numbers and a threshold value, appends all the numbers greater than the threshold to a new list.
 *
 * @param numbers A list of integers.
 * @param threshold The threshold value to compare against.
 * @return A new list containing all the numbers greater than the threshold.
 */
fun appendGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {

    // Initialize an empty list to store numbers greater than the threshold
    val greaterNumbers = mutableListOf<Int>()
    
    // Iterate over each number in the list
    for (number in numbers) {
        // Check if the number is greater than the threshold
        if (number > threshold) {
            // Append the number to the new list
            greaterNumbers.add(number)
        }
    }
    
    return greaterNumbers
}
/**
 * Given a list of numbers and a threshold value, appends all the numbers greater than the threshold to a new list.
 *
 * @param numbers A list of integers.
 * @param threshold The threshold value to compare against.
 * @return A new list containing all the numbers greater than the threshold.
 */
fun appendGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {
/**
 * Given a list of numbers and a threshold value, appends all the numbers greater than the threshold to a new list.
 *
 * @param numbers A list of integers.
 * @param threshold The threshold value to compare against.
 * @return A new list containing all the numbers greater than the threshold.
 */
fun appendGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {

    // Initialize an empty list to store numbers greater than the threshold
    val greaterNumbers = mutableListOf<Int>()
    
    // Iterate over each number in the list
    for (number in numbers) {
        // Check if the number is greater than the threshold
        if (number > threshold) {
            // Append the number to the new list
            greaterNumbers.add(number)
        }
    }
    
    return greaterNumbers
}