Solution14.java