Update Solution.java

comments for the goodness function