Adding a solution to problem 42. I did touch it up a bit after finding the solution. Optimizing, you know.