Problem 38 Solution, ~0.05 second Execution Time