Adding Java solutions for 2 Moderate challanges.

Moderate challanges:
- MinimumCoins
- MthToLastElement