Update Solution5.java