Update Solution1Q6.java