Create solve2.java