Create problem31.java