Completed Problem 14, with a beautiful recursive function I mi
ght add