Solve Problem 14.

At first I was stymied for a bit on this one until I realized
I was getting the wrong answer because I was suffering from
integer overflow. It was nothing swapping int out with long
couldn't fix.