Create Greedy.java

Greedy algorithm in Java