problem 14 java