Java Greedy Gift Givers Solution