/**
 * Modifies the elements in a list within a specified range.
 *
 * @param elements The list of elements.
 * @param start The start index of the range (inclusive).
 * @param end The end index of the range (exclusive).
 */
fun modifyElementsInList(elements: MutableList<Int>, start: Int, end: Int) {

    // Iterate over the given range
    for (i in start until end) {
        // Modify each element at index i
        elements[i] = elements[i] * i + (i + 1)
    }
}

// Example usage
/**
 * Modifies the elements in a list within a specified range.
 *
 * @param elements The list of elements.
 * @param start The start index of the range (inclusive).
 * @param end The end index of the range (exclusive).
 */
fun modifyElementsInList(elements: MutableList<Int>, start: Int, end: Int) {
/**
 * Modifies the elements in a list within a specified range.
 *
 * @param elements The list of elements.
 * @param start The start index of the range (inclusive).
 * @param end The end index of the range (exclusive).
 */
fun modifyElementsInList(elements: MutableList<Int>, start: Int, end: Int) {

    // Iterate over the given range
    for (i in start until end) {
        // Modify each element at index i
        elements[i] = elements[i] * i + (i + 1)
    }
}

// Example usage