Update Solution4.java