Update Solution9Q6.java