Solution to Problem 37, ~3.151 Second Execution Time