Added Java solution to Problem 5 into README.