Solution to problem 34.

Sigh... took me a few tries to remember 0! = 1.