Added Java solution to Problem 3 into README.