/**
 * This exercise focuses on appending elements to a list and understanding the behavior of inclusive and exclusive range.
 */
fun appendElementsAndUnderstandRange(lst: MutableList<Int>, start: Int, end: Int, step: Int): List<Int> {

    // Append elements to the list using a range with given start, end, and step values
    // For example, if lst = [1, 2, 3] and start = 4, end = 10, step = 2
    // The expected output would be lst = [1, 2, 3, 4, 6, 8, 10]
    lst.addAll((start until end step step).toList())

    return lst
}

// Example usage:
/**
 * This exercise focuses on appending elements to a list and understanding the behavior of inclusive and exclusive range.
 */
fun appendElementsAndUnderstandRange(lst: MutableList<Int>, start: Int, end: Int, step: Int): List<Int> {
/**
 * This exercise focuses on appending elements to a list and understanding the behavior of inclusive and exclusive range.
 */
fun appendElementsAndUnderstandRange(lst: MutableList<Int>, start: Int, end: Int, step: Int): List<Int> {

    // Append elements to the list using a range with given start, end, and step values
    // For example, if lst = [1, 2, 3] and start = 4, end = 10, step = 2
    // The expected output would be lst = [1, 2, 3, 4, 6, 8, 10]
    lst.addAll((start until end step step).toList())

    return lst
}

// Example usage: