Update Solution2Q4.java