Problem 49 Solution, ~0.050 second Execution Time