Greedy Algo working :D