/**
 * This function finds the sum of all the integers within a given range.
 */
fun findSumOfRange(start: Int, end: Int): Int {

    if (start > end) {
        return 0
    }

    var totalSum = 0
    for (num in start..end) {
        totalSum += num
    }

    return totalSum
}
/**
 * This function finds the sum of all the integers within a given range.
 */
fun findSumOfRange(start: Int, end: Int): Int {
/**
 * This function finds the sum of all the integers within a given range.
 */
fun findSumOfRange(start: Int, end: Int): Int {

    if (start > end) {
        return 0
    }

    var totalSum = 0
    for (num in start..end) {
        totalSum += num
    }

    return totalSum
}