Update Solution9Q5.java