Sponsored
Use these hints if you're stuck. Try solving on your own first.
Put people's IDs with same groupSize into buckets, then split each bucket into groups.
Greedy fill until you need a new group.
Solve with full IDE support and test cases