This is challange 4 of the bootcamp.
You will need to inspect the console to see the output for this challenge.
In solution 1 for this challenge, each calculation that required a for loop is done within its own method. This solution is more readable. However it has a big O notation of O(4n). This solution has been commented out.
In solution 2, all the calculations are done via the same for loop. This reduces readability but increases efficiency so that it has a big O notation of O(n).