Update Solution2Q6.java