Problem 3 in Lisp
Problem 4, now in Lisp