p001: Added Java solution