Update Solution3.java