Update Solution9Q8.java