Update Solution.java

add two problems code