Update Solution18Q3.java