Problem1.java