Problem 32 Solution, ~55 second Execution Time