func TreatDistribution(arr []int) int {
	set := datastructure.NewSet(arr)

	if len(set.List) >= (len(arr) / 2) {
		return (len(arr) / 2)
	}

	return len(set.List)
}
// TreatDistribution returns maximum number of unique kinds of snacks
TreatDistribution returns maximum number of unique kinds of snacks
// TreatDistribution returns maximum number of unique kinds of snacks
func TreatDistribution(arr []int) int {
	set := datastructure.NewSet(arr)
	if len(set.List) >= (len(arr) / 2) {
		return (len(arr) / 2)
	}
	return len(set.List)
}
func TreatDistribution ( arr [ ] int ) int { set := datastructure . NewSet ( arr ) if len ( set . List ) >= ( len ( arr ) / 2 ) { return ( len ( arr ) / 2 ) } return len ( set . List ) }
TreatDistribution returns maximum number of unique kinds of snacks
TreatDistribution returns maximum number of unique kinds of snacks