p008: Added Java Solution