/**
 * Given a start value, an end value (inclusive), and a step, this function calculates the sum of all the values within the inclusive range.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range (inclusive).
 * @param step The step value between consecutive elements in the range.
 * @return The sum of all the numbers in the inclusive range based on the given parameters.
 */
fun findInclusiveRangeSum(start: Int, end: Int, step: Int): Int {

    if (start > end) {
        return 0
    }

    var result = start
    var current = start
    while (current < end) {
        current += step
        result += current
    }

    return result
}
/**
 * Given a start value, an end value (inclusive), and a step, this function calculates the sum of all the values within the inclusive range.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range (inclusive).
 * @param step The step value between consecutive elements in the range.
 * @return The sum of all the numbers in the inclusive range based on the given parameters.
 */
fun findInclusiveRangeSum(start: Int, end: Int, step: Int): Int {
/**
 * Given a start value, an end value (inclusive), and a step, this function calculates the sum of all the values within the inclusive range.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range (inclusive).
 * @param step The step value between consecutive elements in the range.
 * @return The sum of all the numbers in the inclusive range based on the given parameters.
 */
fun findInclusiveRangeSum(start: Int, end: Int, step: Int): Int {

    if (start > end) {
        return 0
    }

    var result = start
    var current = start
    while (current < end) {
        current += step
        result += current
    }

    return result
}