Meta interview question

How to determine gender groups from a set