/**
 * Create a range with start and stop parameters and append each element to a list.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param lst The list to which the elements are appended.
 * @return The modified list with appended elements.
 */
fun createRangeAndAppend(start: Int, stop: Int, lst: MutableList<Int>): MutableList<Int> {

    // Create a range with start and stop parameters
    val rangeValues = start until stop

    // Append each element of the range to the list
    for (value in rangeValues) {
        lst.add(value)
    }

    return lst
}
/**
 * Create a range with start and stop parameters and append each element to a list.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param lst The list to which the elements are appended.
 * @return The modified list with appended elements.
 */
fun createRangeAndAppend(start: Int, stop: Int, lst: MutableList<Int>): MutableList<Int> {
/**
 * Create a range with start and stop parameters and append each element to a list.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param lst The list to which the elements are appended.
 * @return The modified list with appended elements.
 */
fun createRangeAndAppend(start: Int, stop: Int, lst: MutableList<Int>): MutableList<Int> {

    // Create a range with start and stop parameters
    val rangeValues = start until stop

    // Append each element of the range to the list
    for (value in rangeValues) {
        lst.add(value)
    }

    return lst
}