solve by Greedy Algorithm, WRONG answer