R exercise

2.3.4. Nested functions

Sign in to hand in your solution and get feedback.