/**
 * Given a list of numbers, modify the elements in the specified range.
 *
 * @param lst A list of numbers
 * @param start The starting index of the range
 * @param end The ending index of the range
 * @param increment The value to increment each element of the range by
 * @return Modified list with the elements in the specified range updated
 *
 * Example:
 * modifyElementsOfList(listOf(1, 2, 3, 4, 5), start = 2, end = 4, increment = 10)
 * Output: [1, 2, 13, 14, 15]
 */
fun modifyElementsOfList(lst: MutableList<Int>, start: Int, end: Int, increment: Int): List<Int> {

    // Modify the elements in the specified range
    for (i in start until end) {
        lst[i] += increment
    }
    return lst
}
/**
 * Given a list of numbers, modify the elements in the specified range.
 *
 * @param lst A list of numbers
 * @param start The starting index of the range
 * @param end The ending index of the range
 * @param increment The value to increment each element of the range by
 * @return Modified list with the elements in the specified range updated
 *
 * Example:
 * modifyElementsOfList(listOf(1, 2, 3, 4, 5), start = 2, end = 4, increment = 10)
 * Output: [1, 2, 13, 14, 15]
 */
fun modifyElementsOfList(lst: MutableList<Int>, start: Int, end: Int, increment: Int): List<Int> {
/**
 * Given a list of numbers, modify the elements in the specified range.
 *
 * @param lst A list of numbers
 * @param start The starting index of the range
 * @param end The ending index of the range
 * @param increment The value to increment each element of the range by
 * @return Modified list with the elements in the specified range updated
 *
 * Example:
 * modifyElementsOfList(listOf(1, 2, 3, 4, 5), start = 2, end = 4, increment = 10)
 * Output: [1, 2, 13, 14, 15]
 */
fun modifyElementsOfList(lst: MutableList<Int>, start: Int, end: Int, increment: Int): List<Int> {

    // Modify the elements in the specified range
    for (i in start until end) {
        lst[i] += increment
    }
    return lst
}