4-2 Completed.
4-3 Completed.

Bad function arity error because I forgot the square brackets in around
the function in the export call.
4-4 Completed.

My initial solution used a guard to figure out N==0 instead of having
'0' as paramter.
4-4 Commenting & Spec
4-5 Completed.