update solution.java