Problem 30 Solution, ~7.62 second Execution Time