Update Solution.java

added function stuff to it