/**
 * Given a start and stop value, calculate the total expenses by taking the complement of the sum of a range
 * using the start and stop as parameters.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The stopping value of the range (exclusive).
 * @return The complement of the sum of the range, representing the total expenses.
 *
 * Example:
 * calculateTotalExpenses(3, 11) => -35
 */
fun calculateTotalExpenses(start: Int, stop: Int): Int {

    // Complement operator (-) is used to make the code difficult
    return -(IntRange(start, stop - 1).sum())
}
/**
 * Given a start and stop value, calculate the total expenses by taking the complement of the sum of a range
 * using the start and stop as parameters.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The stopping value of the range (exclusive).
 * @return The complement of the sum of the range, representing the total expenses.
 *
 * Example:
 * calculateTotalExpenses(3, 11) => -35
 */
fun calculateTotalExpenses(start: Int, stop: Int): Int {
/**
 * Given a start and stop value, calculate the total expenses by taking the complement of the sum of a range
 * using the start and stop as parameters.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The stopping value of the range (exclusive).
 * @return The complement of the sum of the range, representing the total expenses.
 *
 * Example:
 * calculateTotalExpenses(3, 11) => -35
 */
fun calculateTotalExpenses(start: Int, stop: Int): Int {

    // Complement operator (-) is used to make the code difficult
    return -(IntRange(start, stop - 1).sum())
}