Greedy Gift Givers solved