/**
 * This function takes a starting number, an ending number, and an increment value,
 * and returns the sum of all the numbers within that range after adding the increment value.
 */
fun addElements(start: Int, end: Int, increment: Int): Int {

    var totalSum = 0

    for (i in start..end step increment) {
        totalSum += i
    }

    return totalSum
}
/**
 * This function takes a starting number, an ending number, and an increment value,
 * and returns the sum of all the numbers within that range after adding the increment value.
 */
fun addElements(start: Int, end: Int, increment: Int): Int {
/**
 * This function takes a starting number, an ending number, and an increment value,
 * and returns the sum of all the numbers within that range after adding the increment value.
 */
fun addElements(start: Int, end: Int, increment: Int): Int {

    var totalSum = 0

    for (i in start..end step increment) {
        totalSum += i
    }

    return totalSum
}