P121: Added Java and Mathematica solutions.
P130: Added Java solution.