Clean up Problem 62 Logic