Problem 42 solution added. ~0.004 seconds running time.