Modified solution.java to have a isCorrectGuess() method.