Write a function sumTo(n) that calculates the sum of numbers 1 + 1 + ... + n.
sumTo(n)
1 + 1 + ... + n