Sapply/ Lapply Homework

I have removed the image from your post as it violates this forums homework policy.

Homework inspired questions are welcome but they should not include verbatim instructions from your course.