const sumAll = function(a, b) {
let c, sum = 0;
for ((a > b) ? (i = b, c = a)
: (i = a, c = b); i <= c; i++) {
sum += i;
}
return sum;
};
// Do not edit below this line
module.exports = sumAll;