Update Solution4Q5.java