Update Solution2Q7.java