Update Solution4Q7.java