Problem3.java added