Write a method that adds up every whole number from 1 up to and including n, and returns the total. If n is less than 1, return 0.
int sumTo(int n)
Examples
There are also 5 hidden tests you can't see. Solve the problem, not the examples.