Fix addUpTo 🌶️
The method below is supposed to return the sum of the ints from 1 up to and including n, so addUpTo(5) is 15. It leaves n out of the sum. Find the bug and fix it. Run the tests and read each result: a wrong value, an exception and a compile error are different clues.
What is the last value of i that the body runs for? Is it n?
The condition i < n stops BEFORE n. To include n, use <=.