Moved the helper method that checks if a number is a perfect square or not from Question 9 to the super class, as it can be used in other questions.
Added the solution to Question 39.