R exercise

2.3.2 Nested functions

Sign in to hand in your solution and get feedback.