Update Solution4Q6.java