P133: Added Java solution.