Problem 36 Solution, ~4.5 second Execution Time