Update Solution.java

updated Solution.java