Write a function that takes the last number of a consecutive list of numbers and returns the total of all numbers up to and including it.
addUpTo(3) ➞ 6
// 1 + 2 + 3 = 6
addUpTo(10) ➞ 55
// 1 + 2 + 3 + ... + 10 = 55
addUpTo(7) ➞ 28
// 1 + 2 + 3 + ... + 7 = 28
return the result.