Create solve1.java