Add solution to problem 49.

This is the first solved problem since projecteuler.net was hacked on
20 June 2014; the solution was verified but not officialy recorded.