Create solve3.java