added ProblemThree.java