The last problem from the Java Exam