Update Solution9Q7.java