/**
 * This function takes a list of numbers and a threshold value.
 * It removes all the elements that are less than the threshold value and returns the updated list.
 *
 * @param numbers A list of numbers.
 * @param threshold The value that serves as a threshold.
 * @return The list of numbers after removing elements less than the threshold.
 */
fun removeLessThan(numbers: MutableList<Int>, threshold: Int): MutableList<Int> {

    var i = 0
    while (i < numbers.size) {
        if (numbers[i] < threshold) {
            numbers.removeAt(i)
        } else {
            i++
        }
    }
    return numbers
}
/**
 * This function takes a list of numbers and a threshold value.
 * It removes all the elements that are less than the threshold value and returns the updated list.
 *
 * @param numbers A list of numbers.
 * @param threshold The value that serves as a threshold.
 * @return The list of numbers after removing elements less than the threshold.
 */
fun removeLessThan(numbers: MutableList<Int>, threshold: Int): MutableList<Int> {
/**
 * This function takes a list of numbers and a threshold value.
 * It removes all the elements that are less than the threshold value and returns the updated list.
 *
 * @param numbers A list of numbers.
 * @param threshold The value that serves as a threshold.
 * @return The list of numbers after removing elements less than the threshold.
 */
fun removeLessThan(numbers: MutableList<Int>, threshold: Int): MutableList<Int> {

    var i = 0
    while (i < numbers.size) {
        if (numbers[i] < threshold) {
            numbers.removeAt(i)
        } else {
            i++
        }
    }
    return numbers
}