/**
 * This function will remove all the elements greater than the given threshold from a
 * given list of numbers.
 *
 * @param numbers A list of numbers
 * @param threshold Threshold value
 * @return A new list with elements not greater than the threshold
 */
fun removeGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {

    // Create an empty list to store the elements not greater than the threshold
    val result = mutableListOf<Int>()

    // Iterate through each number in the given list
    for (number in numbers) {
        // Check if the number is less than or equal to the threshold
        if (number <= threshold) {
            // Append the number to the result list
            result.add(number)
        }
    }

    // Return the result list
    return result
}
/**
 * This function will remove all the elements greater than the given threshold from a
 * given list of numbers.
 *
 * @param numbers A list of numbers
 * @param threshold Threshold value
 * @return A new list with elements not greater than the threshold
 */
fun removeGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {
/**
 * This function will remove all the elements greater than the given threshold from a
 * given list of numbers.
 *
 * @param numbers A list of numbers
 * @param threshold Threshold value
 * @return A new list with elements not greater than the threshold
 */
fun removeGreaterThan(numbers: List<Int>, threshold: Int): List<Int> {

    // Create an empty list to store the elements not greater than the threshold
    val result = mutableListOf<Int>()

    // Iterate through each number in the given list
    for (number in numbers) {
        // Check if the number is less than or equal to the threshold
        if (number <= threshold) {
            // Append the number to the result list
            result.add(number)
        }
    }

    // Return the result list
    return result
}