Greedy algorithm
Merge pull request #25 from Meng-Gen/problem-476

Greedy algorithm