Update Solution2Q5.java