/**
 * Given a list 'lst', modify the elements within the specified range.
 *
 * @param lst A list of elements.
 * @param start An integer representing the index to start modifying elements.
 * @param end An integer representing the index to stop modifying elements (exclusive).
 * @return The modified list with elements in the specified range modified by adding 1.
 */
fun modifyListElements(lst: MutableList<Int>, start: Int, end: Int): List<Int> {

    for (i in start until end) {
        if (i < lst.size) {
            lst[i] += 1
        }
    }
    return lst
}
/**
 * Given a list 'lst', modify the elements within the specified range.
 *
 * @param lst A list of elements.
 * @param start An integer representing the index to start modifying elements.
 * @param end An integer representing the index to stop modifying elements (exclusive).
 * @return The modified list with elements in the specified range modified by adding 1.
 */
fun modifyListElements(lst: MutableList<Int>, start: Int, end: Int): List<Int> {
/**
 * Given a list 'lst', modify the elements within the specified range.
 *
 * @param lst A list of elements.
 * @param start An integer representing the index to start modifying elements.
 * @param end An integer representing the index to stop modifying elements (exclusive).
 * @return The modified list with elements in the specified range modified by adding 1.
 */
fun modifyListElements(lst: MutableList<Int>, start: Int, end: Int): List<Int> {

    for (i in start until end) {
        if (i < lst.size) {
            lst[i] += 1
        }
    }
    return lst
}